summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2009-02-14remove accidental white spaceDerrell Lipman1-1/+0
2009-02-14Get rid of the warnings I had for testingDerrell Lipman1-5/+0
2009-02-14It seems some systems use f_flags instead of f_flag. Use the appropriate one.Derrell Lipman1-4/+11
2009-02-14f_frsize field is not ubiquitous. Check for it.Derrell Lipman1-0/+4
2009-02-14The f_fsid field is not always an integer type. Don't set it in that case.Derrell Lipman1-0/+5
2009-02-14Ensure consistency of values on stack (caught by AIX compiler)Derrell Lipman1-16/+16
2009-02-14Check for the right error return valueDerrell Lipman1-2/+3
2009-02-14[Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman2-4/+4
- Revert Tim's changes for the moment. I need to see what the issue is and arrange to use "struct statvfs" if at all possible. Derrell
2009-02-13s3 libsmbclient: Fix fstatvfs to be more portableTim Prouty2-4/+4
The statvfs struct isn't guaranteed to be portable across operating systems. Since libsmbclient isn't actually calling statvfs and just using the statvfs struct to store similar information, this patch adds a new portable smbc_statvfs struct. This fixes a few of the failures in the build farm introduced by: ae259575c447e61665c8e7070c476914161b953f Derrell, please check.
2009-02-12[Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman5-0/+355
- port functionality from v3_3_test to master Derrell
2009-02-10Do not use strlen if not necessary... :-)Volker Lendecke1-4/+2
2009-02-10If we receive a DOS error code, nt_errstr should display itVolker Lendecke1-0/+5
2009-02-09eliminate compiler warningsDerrell Lipman1-4/+7
2009-02-05s3: use struct netr_Credential in cred_step().Günther Deschner1-1/+1
Guenther
2009-02-03Probably fixes a crash during name resolution when log level >= 10Ted Percival1-1/+1
and libc segfaults if printf is passed NULL for a "%s" arg (eg. Solaris).
2009-02-03Fix Coverity ID 870Volker Lendecke1-0/+4
2009-02-02Next step disentangling async_req from NTSTATUSVolker Lendecke1-1/+1
Now I need to document this :-)
2009-02-01Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke6-35/+35
2009-01-31Make is_andx_req non-staticVolker Lendecke2-26/+25
2009-01-30Add async cli_ntcreateVolker Lendecke1-0/+132
2009-01-30Make cli_tcon_andx asyncVolker Lendecke4-67/+166
2009-01-30Make cli_session_setup_guest asyncVolker Lendecke1-37/+103
2009-01-29Add the strlen to push to smb_bytes_push_str, return the converted sizeVolker Lendecke3-12/+18
The pushed strlen replaces the STR_TERMINATE flag which I personally always find very confusing.
2009-01-29cli_ucs2Volker Lendecke1-0/+10
2009-01-28Fix a valgrind error when the socket diesVolker Lendecke1-4/+9
Don't reference anything that might have been deleted in the async_req_error call.
2009-01-27s3:namecache: remove unused namecache_shutdown() functionStefan Metzmacher1-21/+0
metze
2009-01-26Decouple clistr_pull from struct cli_state->inbufVolker Lendecke7-32/+49
2009-01-25Fix an error path memleakVolker Lendecke1-0/+1
2009-01-25Make smb_bytes_push_str deal with a NULL buf returning NULLVolker Lendecke1-1/+6
2009-01-21Memory leaks and other fixes found by Coveritytodd stecher1-5/+5
2009-01-18Add a macro async_req_setup()Volker Lendecke1-25/+9
This streamlines setting up a multi-step async request a bit
2009-01-17Determine case sensitivity based on file system attributes.Derrell Lipman3-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
2009-01-16[Bug 6022] smbc_urlencode and smbc_urldecode were not exportedDerrell Lipman2-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
2009-01-16Treat file names in POSIX-like case-sensitive fashion by defaultDerrell Lipman3-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
2009-01-16Fix a segfault if ? is there but the options are NULL. This is the case if ↵Andreas Schneider1-1/+1
SMBC_parse_path is called by SMBC_stat_ctx.
2009-01-16s3: put netsamlogon_cache.tdb into cache_dir instead of lock_dirMichael Adam1-1/+1
Michael
2009-01-15s3: make better use of ccache by not including version.h in every C-file.Michael Adam2-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
2009-01-14Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison3-35/+30
the connections list and authentication structures to worry about. Jeremy
2009-01-14Remove another global from clidfs that is only used in client.c.Jeremy Allison1-11/+16
Jeremy.
2009-01-12s3:libsmb: handle the smb signing states the same in the krb5 and ntlmssp casesStefan Metzmacher1-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
2009-01-11Move cli_api_pipe() to its only user cli_pipe.cVolker Lendecke1-23/+0
2009-01-08Fix bug #6021 - smbclient du command does not recuse properlyJeremy Allison1-1/+2
Jeremy.
2009-01-04Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij5-54/+118
2009-01-04Simulate the Windows behaviour to fire 445 and after a timeout 139Volker Lendecke1-14/+76
2009-01-04Async wrapper for open_socket_out_send/recvVolker Lendecke1-8/+15
2009-01-03open_socket_out is always used with SOCK_STREAM, remove argument "type"Volker Lendecke1-7/+5
2009-01-03struct async_req doesn't really need to carry an event_contextVolker Lendecke2-6/+6
2009-01-02Remove cli_cm_set_dest_ss() - removes the global dest_ssJeremy Allison1-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.
2009-01-01Remove a global variableVolker Lendecke1-13/+20
2009-01-01fix some nonempty blank linesVolker Lendecke1-5/+5