summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clifile.c
Commit message (Collapse)AuthorAgeFilesLines
* added simple tests for SMBchkpath and SMBioctlAndrew Tridgell2003-03-301-1/+31
|
* Found by metze with the clobber-region check - if it's a pstring, use pstrcpy().Andrew Bartlett2003-03-141-1/+1
| | | | Andrew Bartlett
* win2000 can take much longer than the specified time to respond to aAndrew Tridgell2003-03-131-1/+1
| | | | | lock - so to make the torture tests valid I give it a grace time of 10 seconds instead of 2
* Change size parameters from signed to unsigned to fix up warnings.Jeremy Allison2003-03-121-6/+6
| | | | Jeremy.
* Do my janitorial duties to encourage others to do so.Richard Sharpe2003-03-031-1/+1
| | | | Fix lingering large offset problems in smbtar etc.
* Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatibleJelmer Vernooij2002-08-211-1/+1
|
* Don't use uint. It doesn't exist on some platforms and we don't define it.Jeremy Allison2002-06-211-1/+1
| | | | | Replaced with "unsigned int". Jeremy.
* added cli_locktype() for testing different lockingX lock typesAndrew Tridgell2002-03-111-0/+54
|
* better handling of a zero timeout in cli_lockAndrew Tridgell2002-03-101-2/+6
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Merged in %S fixes and XX_NOT_CHANGED fixes from 2.2.Jeremy Allison2002-01-161-2/+2
| | | | Jeremy.
* Added CIFS UNIX extension code to client.Jeremy Allison2002-01-161-0/+164
| | | | Jeremy.
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-111-26/+26
| | | | Jeremy.
* 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.
* 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.
* 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
* move to SAFE_FREE()Simo Sorce2001-09-171-2/+2
|
* use cli_is_error() instead of looking in smb_rcls, otherwise NT statusAndrew Tridgell2001-09-051-19/+15
| | | | codes don't work correctly
* use 32 bit locking if client doesn't do 64 bitAndrew Tridgell2001-08-231-0/+8
|
* string terminate in mkdirAndrew Tridgell2001-08-211-1/+1
|
* 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.
* 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.
* Insure caught the fact that PTRDIFFs were being done between two unrelatedJeremy Allison2001-07-021-1/+1
| | | | | pointers. Jeremy.
* 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
* Fix a small warning about char * vs unsigned char * that gets some compilersRichard Sharpe2001-05-171-1/+1
| | | | in a twitch.
* merging from 2.2 to headAndrew Tridgell2001-04-221-8/+45
|
* 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.
* Added cli_nt_delete_on_close() call to allow flag to be set for torture tests.Jeremy Allison2001-03-291-0/+41
| | | | Jeremy.
* 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.
* simpler clistr interface which handles individual packets havingAndrew Tridgell2001-03-141-1/+1
| | | | unicode bit set differently to capabilities
* to use the same macros in the client and server rename the CLISTR_Andrew Tridgell2001-03-101-11/+11
| | | | macros to STR_
* cope better with broken filer expectationsAndrew Tridgell2001-02-221-2/+2
|
* 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
* yipee! client unicode now works well with ntAndrew Tridgell2001-02-201-3/+9
|
* converted a bunch more fnsAndrew Tridgell2001-02-201-15/+25
|
* converted nt_create and setatrAndrew Tridgell2001-02-201-9/+10
|
* - neater setting of bccAndrew Tridgell2001-02-201-13/+14
| | | | - converted cli_rename and cli_unlink
* converted cli_open()Andrew Tridgell2001-02-201-7/+8
|
* converted cli_chkpath()Andrew Tridgell2001-02-201-3/+4
|
* converted cli_mkdir()Andrew Tridgell2001-02-201-3/+4
|
* 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.
* pass the desired access into cli_nt_create()Andrew Tridgell2000-12-041-3/+3
|
* fixed indentationAndrew Tridgell2000-12-041-1/+1
|
* 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.
* added cli_lock64() and cli_unlock64()Andrew Tridgell2000-09-291-0/+96
|
* 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