summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* Convert name_mangle() to use tallocVolker Lendecke2009-02-242-8/+32
|
* More warning fixes for Solaris.Jeremy Allison2009-02-231-1/+1
| | | | Jeremy.
* Make char* parameters constDerrell Lipman2009-02-231-16/+6
| | | | | | | | | | | | | - Use const in function signatures whenever appropriate, to help prevent errant scribbling on users' buffers. smbc_set_credentials() always acted as if its formal parameters were const char *, and changing the formal declaration to specify that should not cause any change to the ABI. It is still allowable to pass a writable buffer to a function which specifies that it will not write to the buffer. I'm making this change only in master. Derrell
* Remove the static "chal" from ntlmssp.c:get_challenge()Volker Lendecke2009-02-211-7/+5
|
* Move some bytes from the data to the text segmentVolker Lendecke2009-02-211-3/+3
|
* Change smbc_set_credentials_with_fallback() (unreleased) to useJeremy Allison2009-02-201-7/+14
| | | | | const approptiately. Jeremy.
* variable grouping: just my OCD desire to keep similar things togetherDerrell Lipman2009-02-201-5/+7
|
* Make libsmbclient work with DFSBo Yang2009-02-206-6/+96
| | | | Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* s3: Add extid to the dev/inode pairTim Prouty2009-02-191-12/+27
| | | | | | | | | | | This extends the file_id struct to add an additional generic uint64_t field: extid. For backwards compatibility with dev/inodes stored in xattr_tdbs and acl_tdbs, the ext id is ignored for these databases. This patch should cause no functional change on systems that don't use SMB_VFS_FILE_ID_CREATE to set the extid. Existing code that uses the smb_share_mode library will need to be updated to be compatibile with the new extid.
* Interesting C compiler you have there... :-)Volker Lendecke2009-02-191-1/+1
|
* Fix coverity CID-602. Possible use of uninitialized var.Jeremy Allison2009-02-181-1/+1
| | | | Jeremy.
* Don't miss an absolute pathname as a kerberos keytab path. From Glenn Machin ↵Jeremy Allison2009-02-171-0/+5
| | | | | | <gmachin@sandia.gov>. Jeremy.
* remove accidental white spaceDerrell Lipman2009-02-141-1/+0
|
* Get rid of the warnings I had for testingDerrell Lipman2009-02-141-5/+0
|
* It seems some systems use f_flags instead of f_flag. Use the appropriate one.Derrell Lipman2009-02-141-4/+11
|
* f_frsize field is not ubiquitous. Check for it.Derrell Lipman2009-02-141-0/+4
|
* The f_fsid field is not always an integer type. Don't set it in that case.Derrell Lipman2009-02-141-0/+5
|
* Ensure consistency of values on stack (caught by AIX compiler)Derrell Lipman2009-02-141-16/+16
|
* Check for the right error return valueDerrell Lipman2009-02-141-2/+3
|
* [Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman2009-02-142-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
* s3 libsmbclient: Fix fstatvfs to be more portableTim Prouty2009-02-132-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.
* [Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman2009-02-125-0/+355
| | | | | | - port functionality from v3_3_test to master Derrell
* Do not use strlen if not necessary... :-)Volker Lendecke2009-02-101-4/+2
|
* If we receive a DOS error code, nt_errstr should display itVolker Lendecke2009-02-101-0/+5
|
* eliminate compiler warningsDerrell Lipman2009-02-091-4/+7
|
* s3: use struct netr_Credential in cred_step().Günther Deschner2009-02-051-1/+1
| | | | Guenther
* Probably fixes a crash during name resolution when log level >= 10Ted Percival2009-02-031-1/+1
| | | | | and libc segfaults if printf is passed NULL for a "%s" arg (eg. Solaris).
* Fix Coverity ID 870Volker Lendecke2009-02-031-0/+4
|
* Next step disentangling async_req from NTSTATUSVolker Lendecke2009-02-021-1/+1
| | | | Now I need to document this :-)
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-016-35/+35
|
* Make is_andx_req non-staticVolker Lendecke2009-01-312-26/+25
|
* Add async cli_ntcreateVolker Lendecke2009-01-301-0/+132
|
* Make cli_tcon_andx asyncVolker Lendecke2009-01-304-67/+166
|
* Make cli_session_setup_guest asyncVolker Lendecke2009-01-301-37/+103
|
* Add the strlen to push to smb_bytes_push_str, return the converted sizeVolker Lendecke2009-01-293-12/+18
| | | | | The pushed strlen replaces the STR_TERMINATE flag which I personally always find very confusing.
* cli_ucs2Volker Lendecke2009-01-291-0/+10
|
* Fix a valgrind error when the socket diesVolker Lendecke2009-01-281-4/+9
| | | | | Don't reference anything that might have been deleted in the async_req_error call.
* s3:namecache: remove unused namecache_shutdown() functionStefan Metzmacher2009-01-271-21/+0
| | | | metze
* Decouple clistr_pull from struct cli_state->inbufVolker Lendecke2009-01-267-32/+49
|
* Fix an error path memleakVolker Lendecke2009-01-251-0/+1
|
* Make smb_bytes_push_str deal with a NULL buf returning NULLVolker Lendecke2009-01-251-1/+6
|
* 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