summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clifile.c
Commit message (Collapse)AuthorAgeFilesLines
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-1/+1
| | | | (This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-1/+1
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* added cli_locktype() for testing different lockingX lock typesAndrew Tridgell2002-03-111-0/+54
| | | | (This used to be commit 136b9752fc9da86f0ad0e1f46dc389b752975aea)
* better handling of a zero timeout in cli_lockAndrew Tridgell2002-03-101-2/+6
| | | | (This used to be commit 56662a75f58d35cec1a5b2d6c9a4315d95a22420)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Merged in %S fixes and XX_NOT_CHANGED fixes from 2.2.Jeremy Allison2002-01-161-2/+2
| | | | | Jeremy. (This used to be commit 0fcca6c627a5c9c2219ec9714df5e0bc1a44cc29)
* Added CIFS UNIX extension code to client.Jeremy Allison2002-01-161-0/+164
| | | | | Jeremy. (This used to be commit 794c3e2c76aae57d054e46b185def104ca02977c)
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-111-26/+26
| | | | | Jeremy. (This used to be commit 01ff6ce4963e1daff019f2b936cef218e1c93f67)
* Got serious about const again.Jeremy Allison2001-11-041-68/+65
| | | | | | | | REMOVED BZERO CALLS YET AGAIN !!! Why do these keep creeping back in.... They are *NOT* POSIX. I'm also thinking of removing strncpy as I'm sure it's not being used correctly.... Jeremy. (This used to be commit b1930abb35dee74f858a3f7190276c418af2322b)
* Added NT_USER_TOKEN into server_info to fix extra groups problem.Jeremy Allison2001-11-031-3/+3
| | | | | | Got "medieval on our ass" about const warnings (as many as I could :-). Jeremy. (This used to be commit ee5e7ca547eff016818ba5c43b8ea0c9fa69b808)
* fixed ctemp in server and client. It turns out that ctemp on NT is ↵Andrew Tridgell2001-09-171-3/+12
| | | | | | completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case (This used to be commit 2d507ec669def6d49304559e53d6c14af9b290a9)
* move to SAFE_FREE()Simo Sorce2001-09-171-2/+2
| | | | (This used to be commit 48fc6a6cd52e01b287030fbbf0aa08a6814c5e11)
* use cli_is_error() instead of looking in smb_rcls, otherwise NT statusAndrew Tridgell2001-09-051-19/+15
| | | | | codes don't work correctly (This used to be commit 55d5828e608671f070a9e96938be0d16d50aeb26)
* use 32 bit locking if client doesn't do 64 bitAndrew Tridgell2001-08-231-0/+8
| | | | (This used to be commit 759ca19f3223c28e3e3478b4001251d2cb0fbfd6)
* string terminate in mkdirAndrew Tridgell2001-08-211-1/+1
| | | | (This used to be commit fe414d5e1afdfe7bb20ff5da60394ffd9fa81b05)
* A rewrite of the error handling in the libsmb client code. I've separatedTim Potter2001-08-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | out the error handling into a bunch of separate functions rather than all being handled in one big function. Fetch error codes from the last received packet: void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num); uint32 cli_nt_error(struct cli_state *); Convert errors to UNIX errno values: int cli_errno_from_dos(uint8 eclass, uint32 num); int cli_errno_from_nt(uint32 status); int cli_errno(struct cli_state *cli); Detect different kinds of errors: BOOL cli_is_dos_error(struct cli_state *cli); BOOL cli_is_nt_error(struct cli_state *cli); BOOL cli_is_error(struct cli_state *cli); This also means we now support CAP_STATUS32 as we can decode and understand NT errors instead of just DOS errors. Yay! Ported a whole bunch of files in libsmb to use this new API instead of the just the DOS error. (This used to be commit 6dbdb0d813f3c7ab20b38baa1223b0b479aadec9)
* The big character set handling changeover!Andrew Tridgell2001-07-041-13/+13
| | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* Insure caught the fact that PTRDIFFs were being done between two unrelatedJeremy Allison2001-07-021-1/+1
| | | | | | pointers. Jeremy. (This used to be commit 15c64199cb29e2fca6ee7353673dbb3f962e0e24)
* Added STR_NOALIGN flags to clistr and srvstr fns. Yes, NT actually doesAndrew Tridgell2001-06-211-2/+4
| | | | | | | | | send unaligned unicode strings sometimes! Fixed our handling of the workgroup name tacked on the end of the NT1 negprot response (a unaligned unicode) fixed a couple of places where we should be using the message_end fns instead of pre-calculated buffer lengths (This used to be commit 86613493a9b2e56523153486931d0bf8d39beb7a)
* Fix a small warning about char * vs unsigned char * that gets some compilersRichard Sharpe2001-05-171-1/+1
| | | | | in a twitch. (This used to be commit 672242a52eafde35cba4657bce248fef0df9e46b)
* merging from 2.2 to headAndrew Tridgell2001-04-221-8/+45
| | | | (This used to be commit bfcc6f88271025760732271f03933839b1cbe0de)
* This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison2001-03-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | when copying to a full disk problem, I discovered that we were not allowing the delete on close flag to be set properly, this led to other things, and after investigation of the proper delete on close semantics and their relationship to the file_share_delete flag I discovered there were some cases where we weren't doing the deny modes properly. And this after only 5 years working on them..... :-) :-). So here's the latest attempt. I realised the delete on close flag needs to be set across all smbds with a dev/ino pair open - in addition, the delete on close flag, allow share delete and delete access requested all need to be stored in the share mode tdb. The "delete_on_close" entry in the fsp struct is now redundant and should really be removed. This may also mean we can get rid of the "iterate_fsp" calls that I didn't like adding in the first place. Whilst doing this patch, I also discovered we needed to do the se_map_generic() call for file opens and POSIX ACL mapping, so I added that also. This code, although ugly, now passes the deny mode torture tests plus the delete on close tests I added. I do need to add one more multiple connection delete on close test to make sure I got the semantics exactly right, plus we should also (as Andrew suggested) move to random testing here. The good news is that NT should now correctly delete the file on disk full error when copying to a disk :-). Jeremy. (This used to be commit 51987684bd231c744da2e5f3705fd236d5616173)
* Added cli_nt_delete_on_close() call to allow flag to be set for torture tests.Jeremy Allison2001-03-291-0/+41
| | | | | Jeremy. (This used to be commit 6f7d9e29e4d3a17254ff0ae20c0da63eacded7fe)
* Added cli_nt_create_full() as a way to get at all the ntcreate parameters.Jeremy Allison2001-03-291-6/+20
| | | | | | Used in smbtorture mods. Re-cast cli_nt_create() as a call to cli_nt_create_full(). Jeremy. (This used to be commit f602fa1205e99541e825ccae8502c35cd0e7ccfc)
* simpler clistr interface which handles individual packets havingAndrew Tridgell2001-03-141-1/+1
| | | | | unicode bit set differently to capabilities (This used to be commit 34a0821e087810381996f5ff6cf3b4d7b9bb53a0)
* to use the same macros in the client and server rename the CLISTR_Andrew Tridgell2001-03-101-11/+11
| | | | | macros to STR_ (This used to be commit 95c9e4e0ba8f37f565aaf136f41eb76489441ff7)
* cope better with broken filer expectationsAndrew Tridgell2001-02-221-2/+2
| | | | (This used to be commit 847de3b4adfb00a98032e478b2663d09e240380e)
* the unicode conversion of our client code is complete enough to beAndrew Tridgell2001-02-211-50/+0
| | | | | | | enabled by default you can disable it by setting the environment variable CLI_FORCE_ASCII (This used to be commit 4d59c08c5e6f54c0d6ced7650750cb987e77b6c9)
* yipee! client unicode now works well with ntAndrew Tridgell2001-02-201-3/+9
| | | | (This used to be commit 5b2ef8a1b914265c6072c968d2dad7d26c2aeffc)
* converted a bunch more fnsAndrew Tridgell2001-02-201-15/+25
| | | | (This used to be commit f6b8d6730452522f77852af0917cb48424d4c8a9)
* converted nt_create and setatrAndrew Tridgell2001-02-201-9/+10
| | | | (This used to be commit c40a1e4ebdb379482bf6e7d4efcc9b5321a4e7c6)
* - neater setting of bccAndrew Tridgell2001-02-201-13/+14
| | | | | - converted cli_rename and cli_unlink (This used to be commit 0a8992e224b7a3d90d45b13d73fa8a6f155efa79)
* converted cli_open()Andrew Tridgell2001-02-201-7/+8
| | | | (This used to be commit db60c0c26242be0370e6459fe6f1634c97b61176)
* converted cli_chkpath()Andrew Tridgell2001-02-201-3/+4
| | | | (This used to be commit 95268f52556e5983004e594002b7e18a8656d1f0)
* converted cli_mkdir()Andrew Tridgell2001-02-201-3/+4
| | | | (This used to be commit bce3ed01a9c3c7c89cdc21b60f1122dc6b6db264)
* Added a cli_nt_create_uni() to do a ntcreate&x with a unicode filename,Tim Potter2000-12-211-2/+49
| | | | | regardless of the settings negotiated in the flags2 smb field. (This used to be commit c4476c6315a6e99dd4a1d0e3185a0d17c073205d)
* pass the desired access into cli_nt_create()Andrew Tridgell2000-12-041-3/+3
| | | | (This used to be commit a2d07994e0376a8d530d262573c96710bdff2236)
* fixed indentationAndrew Tridgell2000-12-041-1/+1
| | | | (This used to be commit b7a1c00bed5f0650783c8d7397c11aa2ac59aa04)
* Ok - fixed a bug in our levelII oplock code. We need to break a level II onJeremy Allison2000-11-161-1/+4
| | | | | | | | | | a byte range lock (write lock only, but Win2k breaks on read lock also so I do the same) - if you think about why, this is obvious. Also fixed our client code to do level II oplocks, if requested, and fixed the code where we would assume the client wanted level II if it advertised itself as being level II capable - it may not want that. Jeremy. (This used to be commit 213cd0b5192307cd4b0026cae94b2f52fb1b0c02)
* added cli_lock64() and cli_unlock64()Andrew Tridgell2000-09-291-0/+96
| | | | (This used to be commit 91f0a3cc2f59a49f6ce8550e7d07b9b01e0b285f)
* split clientgen.c into several partsAndrew Tridgell2000-04-251-0/+609
the next step is splitting out the auth code, to make adding lukes NTLMSSP support easier (This used to be commit 10c5470835b43116ed48b3137c3b9cc867a20989)