summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2009-03-12Revert "s3:libsmb: add an option to cli_push to let the caller provide the ↵Stefan Metzmacher1-25/+8
buffers" This reverts commit 9579a6f193f570e4ce2af80f4aac7c2f25ae5b22. It's confusing to have a boolean to alter the behavior of cli_push and as the new feature isn't used yet I revert it. We can readd a extra function later. metze
2009-03-10s3:libsmb: add an option to cli_push to let the caller provide the buffersStefan Metzmacher1-8/+25
metze
2009-03-10s3:libsmb: only treat a return 0 as end of fileStefan Metzmacher1-4/+1
metze
2009-03-10s3:libsmb: fix a lot of cli_push() bugsStefan Metzmacher1-95/+107
There were the following problems: 1.) if window_size was a multiple of the chunk_size, we silently dropped the last truncated chunk. 2.) if window_size was 0 pushed only the first chunk to the server and silently dropped the rest. 3.) we had only transferred state->num_reqs writes, even if there would be more data to send. metze
2009-03-07Fix a smbclient segfault against security=share serversVolker Lendecke1-3/+10
2009-03-07Fix some nonempty blank linesVolker Lendecke1-22/+22
2009-03-06s3:libsmb: merge cli_setup_signing_state() into cli_initialise_ex()Stefan Metzmacher1-27/+25
metze
2009-03-06s3:libsmb: remove cli_setup_signing_state() and add struct cli_state ↵Stefan Metzmacher3-7/+10
*cli_initialise_ex() This prepares the next changes. metze
2009-03-06s3:signing: the seqnum should only be decremented by 1 for ntcancel requestsStefan Metzmacher1-2/+4
[MS-SMB] 3.3.5.1 Receiving Any Message says that the seqnum is incremented by only for ntcancel requests for any other request it's by incremented by 2, even if it doesn't expect a response. metze
2009-03-06s3:libsmb: smb signing works the same for extented and non-extended securityStefan Metzmacher1-5/+18
This is only cosmetic, but it makes it easier to understand. metze
2009-02-24Convert name_mangle() to use tallocVolker Lendecke2-8/+32
2009-02-23More warning fixes for Solaris.Jeremy Allison1-1/+1
Jeremy.
2009-02-23Make char* parameters constDerrell Lipman1-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
2009-02-21Remove the static "chal" from ntlmssp.c:get_challenge()Volker Lendecke1-7/+5
2009-02-21Move some bytes from the data to the text segmentVolker Lendecke1-3/+3
2009-02-20Change smbc_set_credentials_with_fallback() (unreleased) to useJeremy Allison1-7/+14
const approptiately. Jeremy.
2009-02-20variable grouping: just my OCD desire to keep similar things togetherDerrell Lipman1-5/+7
2009-02-20Make libsmbclient work with DFSBo Yang6-6/+96
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
2009-02-19s3: Add extid to the dev/inode pairTim Prouty1-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.
2009-02-19Interesting C compiler you have there... :-)Volker Lendecke1-1/+1
2009-02-18Fix coverity CID-602. Possible use of uninitialized var.Jeremy Allison1-1/+1
Jeremy.
2009-02-17Don't miss an absolute pathname as a kerberos keytab path. From Glenn Machin ↵Jeremy Allison1-0/+5
<gmachin@sandia.gov>. Jeremy.
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