summaryrefslogtreecommitdiffstats
path: root/source/smbd/trans2.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-111-5/+5
| | | | Jeremy.
* First part of UNIX extensions (#ifdefed out) more to follow.Jeremy Allison2002-01-101-1/+169
| | | | Jeremy.
* fixed long filenames on win98Andrew Tridgell2001-12-201-1/+3
| | | | the fstype must not be null terminated or win98 doesn't recognise it
* Ensure the CAN_WRITE is checked and prevents O_CREAT and O_TRUNC fromJeremy Allison2001-11-281-0/+9
| | | | | | being set. Also prevent an open on a file on a readonly share from setting delete on close. Jeremy.
* Fixed delete on close bug. Added core dump code to winbindd.Jeremy Allison2001-11-231-72/+89
| | | | Jeremy.
* Tidyups when I was doing the big merge...Jeremy Allison2001-11-171-0/+1
| | | | Jeremy.
* Fixed allocation bug in database prog. Some format fixes.Jeremy Allison2001-11-121-954/+953
| | | | Jeremy.
* Use defined constants not integers.Jeremy Allison2001-11-101-3/+3
| | | | Jeremy.
* Only 1mb allocate slop.Jeremy Allison2001-11-081-56/+55
| | | | Jeremy.
* Merge overdue changes from 2.2. Fix <4gb write problem.Jeremy Allison2001-11-081-40/+29
| | | | Jeremy.
* Added more define bits. Fixed error in vol attributes.Jeremy Allison2001-11-081-1/+0
| | | | Jeremy.
* Don't put a \n on the end of the arg to exit_server()Tim Potter2001-11-051-3/+3
|
* Made nt acl support a local parameter for w2ksp2 profile fix.Jeremy Allison2001-10-121-1/+1
| | | | Jeremy.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-1/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-16/+8
|
* Removed unneeded set of delete on close in fsp->share_mode.Jeremy Allison2001-09-051-7/+0
| | | | Jeremy.
* when you update the share mode in the db you must also updateAndrew Tridgell2001-09-051-0/+7
| | | | | | fsp->share_mode otherwise the check to see if the fsp share mode matches the one in the db will fail when you come to delete it, thus leaving us with a share mode on a file that isn't even open!
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-54/+50
| | | | | | | | | | | | | | | | major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night
* fixed level2 find first for unisys clientsAndrew Tridgell2001-08-241-0/+1
|
* Fix W2K profiles writing to a Samba PDC. Thanks to Microsoft for their help !Jeremy Allison2001-08-231-15/+6
| | | | Jeremy.
* More constant conversions.Tim Potter2001-08-101-2/+2
|
* Fixed wrong placement of allocate code :-(.Jeremy Allison2001-08-091-5/+5
| | | | | Changed alignment offset to 1 to allow netmon to parse ok. Jeremy.
* Added fixes to return correct error codes on space allocation fail.Jeremy Allison2001-08-071-1/+1
| | | | Jeremy.
* Added "strict allocate" per share parameter. This causes actual on-disk ↵Jeremy Allison2001-08-011-10/+44
| | | | | | | allocation to be done. Without it just does the ftruncate. Jeremy.
* Fix for potential crash bug with bad fid.Jeremy Allison2001-07-281-1/+13
| | | | Jeremy.
* fixed some unicode and LANMAN2 bugs in trans2 find first/nextAndrew Tridgell2001-07-071-39/+3
|
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-3/+3
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-30/+22
| | | | | | | 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.
* Ensure we correctly round down to 2 second boundary if dos filetimeJeremy Allison2001-07-041-7/+24
| | | | | set for a share. Jeremy.
* Set support for info levels...Jeremy Allison2001-06-191-20/+14
| | | | Jeremy.
* Best-effort so far implementation of new W2K info levels.Jeremy Allison2001-06-181-0/+148
| | | | | An-embrace-and-extending we will go... Jeremy.
* *Wonderful* patch from Andrew Bartlett that will help ensure tdb's areJeremy Allison2001-06-091-3/+6
| | | | | cleaned on clients abending connections. Thanks Andrew ! Jeremy.
* Correctly make max pathlength 255.Jeremy Allison2001-06-081-1/+1
| | | | Jeremy.
* This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison2001-03-301-134/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Insure fix. Don't read 4 bytes from data area unless there are 4 bytes to read.Jeremy Allison2001-03-281-1/+1
| | | | Jeremy.
* Made the fixes Andrew suggested to asci string code to use srvstr_push.Jeremy Allison2001-03-231-2/+2
| | | | Jeremy.
* Two OS/2 printer fixes from Jim McDonough @ IBM.Jeremy Allison2001-03-231-5/+62
| | | | | | | First one adds a new info level into the lanman printing and an ioctl to the trans2 code. Andrew - this uses ASCII only. It looks ok to me but please check ! Second one adds a parameter "os2 driver map" that allows OS/2 driver names to be mapped. Jeremy.
* don't need to force unicode strings in flg2 anymoreAndrew Tridgell2001-03-161-4/+3
|
* finished the conversion to unicode of the last of the trans2 fnsAndrew Tridgell2001-03-161-18/+6
|
* converted a bunch more trans2 calls for unicode. This got quite tricky :(Andrew Tridgell2001-03-141-179/+145
|
* simpler and more correct srvstr_push()Andrew Tridgell2001-03-131-9/+9
| | | | | | it now uses outbuf not inbuf for the unicode flag, which allows for some server fns to be ascii and means one less parameter in push calls
* converted findnext to unicodeAndrew Tridgell2001-03-131-1/+1
|
* this patch does a number of things:Andrew Tridgell2001-03-131-59/+94
| | | | | | | | | | | | | | | - removes SMB_ALIGNMENT. That macro caused all sorts of problems with getting unicode aligned right in sub-protocols (such as SMBtrans and SMBtrans2). I believe the performance reasons for having SMB_ALIGNMENT has gone away with the new variants of the SMB protocol anyway, as newer commands tend to have their own internal alignment. - fix the locations where we set smb_flg2 to absolute values. We must never do this if we want a hope of coping with unicode. - add initial support for unicode on the wire in smbd. Currently enabled using SMBD_USE_UNICODE environment variable.
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-4/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* Fixed file descriptor leak in error processing of print jobs.Jeremy Allison2001-02-221-3/+17
| | | | | | NT sends "delete on close" to cancel a print job copied from the command line. Deal with this. Merged JohnR's fixes for print job errors. Jeremy.
* reverted *.* patch until someone explains to me what the test case isAndrew Tridgell2001-02-081-5/+0
| | | | | | | that requires this. i _know_ that this isn't the right solution and it breaks things, which is why I am reverting now.
* merge from SAMBA_2_2Gerald Carter2001-02-081-2/+8
|
* Fix from Kenichi Okuyama for memory leak on Realloc fail.Jeremy Allison2001-01-231-21/+51
| | | | Jeremy.
* Fix for short names not being returned correctly with non-mangled shares.Jeremy Allison2000-12-111-1/+2
| | | | Jeremy.