summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* Memory leaks and other fixes found by Coveritytodd stecher2009-01-211-5/+5
|
* Add a macro async_req_setup()Volker Lendecke2009-01-181-25/+9
| | | | This streamlines setting up a multi-step async request a bit
* Determine case sensitivity based on file system attributes.Derrell Lipman2009-01-173-11/+78
| | | | | | | | | | - Most of the time, we can determine from the file system we're connecting to whether it supports case sensitivity. In those cases, we now set the internal case sensitivity flag automatically. For those cases where the request to retrieve file system attributes fails, we'll use the user-specified option value. Derrell
* [Bug 6022] smbc_urlencode and smbc_urldecode were not exportedDerrell Lipman2009-01-162-5/+5
| | | | | | | | | | - Since the revamp of libsmbclient, there has still been an external declaration for smbc_urlencode and smbc_urldecode in libsmbclient.h, yet those functions were renamed and made private. The two choices were to remove the function names from libsmbclient.h or to make them public again. The reported requested that they be public. This commit makes it so. Derrell
* Treat file names in POSIX-like case-sensitive fashion by defaultDerrell Lipman2009-01-163-0/+22
| | | | | | | | | | | | | | | *** THIS COMMIT CAUSES A CHANGE OF DEFAULT BEHAVIOR IN libsmbclient!!! *** - libsmbclient now calls cli_set_case_sensitive() for a new CLI. By default, it requests case-sensitive, but the old behavior of case-insensitive can be requested with smbc_setOptionCaseSensitive(context, False); The change of behavior is considered a bug fix, as it was previously possible to accidentally overwrite a file that had the same case-insensitive name but a different case-sensitive name as a previously-existing file, while creating a new file. Derrell
* Fix a segfault if ? is there but the options are NULL. This is the case if ↵Andreas Schneider2009-01-161-1/+1
| | | | SMBC_parse_path is called by SMBC_stat_ctx.
* s3: put netsamlogon_cache.tdb into cache_dir instead of lock_dirMichael Adam2009-01-161-1/+1
| | | | Michael
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison2009-01-143-35/+30
| | | | | the connections list and authentication structures to worry about. Jeremy
* Remove another global from clidfs that is only used in client.c.Jeremy Allison2009-01-141-11/+16
| | | | Jeremy.
* s3:libsmb: handle the smb signing states the same in the krb5 and ntlmssp casesStefan Metzmacher2009-01-121-16/+35
| | | | | | | | | | | | | | | | | | | | | | | SMB signing works the same regardless of the used auth mech. We need to start with the temp signing ("BSRSPYL ") and the session setup response with NT_STATUS_OK is the first signed packet. Now we set the krb5 session key if we got the NT_STATUS_OK from the server and then recheck the packet. All this is needed to make the fallback from krb5 to ntlmssp possible. This commit also resets the cli->vuid value to 0, if the krb5 auth didn't succeed. Otherwise the server handles NTLMSSP packets as krb5 packets. The restructuring of the SMB signing code is needed to make sure the krb5 code only starts the signing engine on success. Otherwise the NTLMSSP fallback could not initialize the signing engine (again). metze
* Move cli_api_pipe() to its only user cli_pipe.cVolker Lendecke2009-01-111-23/+0
|
* Fix bug #6021 - smbclient du command does not recuse properlyJeremy Allison2009-01-081-1/+2
| | | | Jeremy.
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2009-01-045-54/+118
|\
| * Simulate the Windows behaviour to fire 445 and after a timeout 139Volker Lendecke2009-01-041-14/+76
| |
| * Async wrapper for open_socket_out_send/recvVolker Lendecke2009-01-041-8/+15
| |
| * open_socket_out is always used with SOCK_STREAM, remove argument "type"Volker Lendecke2009-01-031-7/+5
| |
| * struct async_req doesn't really need to carry an event_contextVolker Lendecke2009-01-032-6/+6
| |
| * Remove cli_cm_set_dest_ss() - removes the global dest_ssJeremy Allison2009-01-021-15/+5
| | | | | | | | | | | | | | from libsmb/clidfs.c. Keep the '-I<address>' option in smbclient working. The intent is to remove all globals from libsmb/clidfs.c. Jeremy.
| * Remove a global variableVolker Lendecke2009-01-011-13/+20
| |
| * fix some nonempty blank linesVolker Lendecke2009-01-011-5/+5
| |
* | Add iconv_convenience argument to size functions.Jelmer Vernooij2009-01-011-2/+2
|/
* Fix more asprintf and "ignoring return code" warnings from gcc 4.3.Jeremy Allison2008-12-311-26/+52
| | | | Jeremy.
* Make a CONST_DISCARD unnecessary by applying some constVolker Lendecke2008-12-311-3/+2
| | | | Derrell, please check!
* Attempt to fix bug 5953: Make cli_send_smb_direct_writeX use writevVolker Lendecke2008-12-291-27/+13
| | | | | | It seems there are SMB servers around which can't cope with the write header being sent in a packet of its own. With writev we keep the advantage of direct writes, giving the kernel the chance to coalesce the write calls.
* Add async cli_write_andx and cli_pullVolker Lendecke2008-12-191-0/+406
|
* Fix setting smb_len for huge write&x callsVolker Lendecke2008-12-191-1/+14
|
* Add the cli_wct_ofs routine to calculate the offset for write&xVolker Lendecke2008-12-191-0/+31
|
* Add a doxygen comment line I forgot to mergeVolker Lendecke2008-12-191-0/+1
|
* Convert cli_request->outbuf to uint8_tVolker Lendecke2008-12-191-13/+15
|
* For large smbwrite&x, we need more than 64k bccVolker Lendecke2008-12-191-4/+4
|
* Add some commentsVolker Lendecke2008-12-191-0/+22
| | | | | | If it takes more than 10 seconds to understand the code you've written yourself less than a year ago, it's time for comments or refactoring. I couldn't find a way to refactor that cleanly, so add comments :-)
* Fix the padding calculation in smb_splice_chain for "bytes_padding!=0"Volker Lendecke2008-12-191-1/+1
|
* Pass "bytes_alignment" up through cli_request_sendVolker Lendecke2008-12-196-10/+13
| | | | This parameter makes smb_spice_chain add padding before the bytes field
* Prefer network writes over readsVolker Lendecke2008-12-191-32/+33
| | | | | | If we really want to keep the pipe busy, we need to write everything we have as early as possible, giving the kernel the chance to get rid of the buffers quickly :-)
* Factor out cli_write_max_bufsizeVolker Lendecke2008-12-191-25/+36
|
* Remove two write-only variablesVolker Lendecke2008-12-191-8/+0
| | | | If someone wants those stats, please don't use globals :-)
* Make cli_negprot asyncVolker Lendecke2008-12-191-50/+97
|
* Make cli_negprot return NTSTATUS instead of boolVolker Lendecke2008-12-194-21/+29
|
* cli_negprot_send -> cli_negprot_sendsyncVolker Lendecke2008-12-191-1/+1
|
* Fix a valgrind errorVolker Lendecke2008-12-171-1/+2
| | | | | | | | | | | Reported by naga_kishore_kommuri@yahoo.com Derrel, please check! Thanks, Volker (cherry picked from commit 3356b95f72e26ede4ab16a12c334be90b8b1a639)
* (Fixed) Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Kai Blin2008-12-161-4/+5
| | | | segmentation fault (with NAS-BASIC server).
* Revert "Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Jeremy Allison2008-12-161-24/+683
| | | | | | | | segmentation fault (with NASBASIC server)." Error in commit ! This reverts commit bbd5824140992ea457d4270ee77018ebb367abc9.
* Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Kai Blin2008-12-161-683/+24
| | | | segmentation fault (with NASBASIC server).
* commit b520befe6f51644d20434add9864d7a2fa30aa2eSATOH Fumiyasu2008-12-161-6/+4
| | | | | | | | | | | | | Author: SATOH Fumiyasu <fumiyas@osstech.co.jp> Date: Wed Dec 17 00:42:25 2008 +0900 libsmbclient: Fix SIGBUS on non-x86 CPUs We must align the struct smbc_dirent in the struct SMBC_internal_data because the struct smbc_dirent has numeric values that require alignment. Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke2008-12-142-12/+19
| | | | This involves changing all our clients, that's why it's so large.
* Remove a pointless static variableVolker Lendecke2008-12-131-7/+7
| | | | Every sane compiler will only allocate "*SMBSERVER" once
* Remove a static variableVolker Lendecke2008-12-131-6/+5
| | | | | | | | Derrell, please check! Thanks, Volker
* Micro-Optimize cliconnect.cVolker Lendecke2008-12-131-22/+27
| | | | | | | In this form, the prots array is fully read-only in the text segment and thus can be shared between processes. Probably pointless, but I had fun doing it :-)
* s3:dsgetdcname: retry with the clients siteStefan Metzmacher2008-12-131-6/+43
| | | | metze