summaryrefslogtreecommitdiffstats
path: root/source/smbd/nttrans.c
Commit message (Collapse)AuthorAgeFilesLines
* an initial fix for handling sparse files in smbdAndrew Tridgell2002-07-291-12/+39
| | | | | | | | This gets my test code working, where we previously failed with files above 20G in size. I'm still not completely happy with this. There are just too many fields in trans2.c that we don't fill in.
* Allow trans2 and nttrans messages to be processed in oplock break state.Jeremy Allison2002-07-191-3/+5
| | | | | | | As noticed by Lev Iserovich <lev@ciprico.com> this seems to fix a problem with oplock breaks and Win2k, and we are protected from problems by existing code in trans2.c and nttrans.c Jeremy.
* Formatting fixup. Fix shadow warning.Jeremy Allison2002-07-191-452/+455
| | | | Jeremy.
* Move nttrans.c into the NTSTATUS age.Andrew Bartlett2002-07-141-41/+29
| | | | | | This could do with another eye looking over it, but it seems to work. Andrew Bartlett
* Raise some debug levels.Andrew Bartlett2002-06-221-1/+1
| | | | Andrew Bartlett
* Allow sd_len to be zero on NT_TRANSACT_CREATE but not for set sd (helpsJeremy Allison2002-06-071-4/+7
| | | | | Novell client). Jeremy.
* Fixed the AFP_Resource:$DATA filename creation bug.Jeremy Allison2002-04-171-239/+255
| | | | Jeremy.
* make sure we don't walk past the end of the current SMB buffer whenAndrew Tridgell2002-04-161-9/+8
| | | | | pulling a string this might explain a serious filename corruption bug that Quantum QA spotted
* merge from SAMBA_2_2Gerald Carter2002-04-151-1/+1
|
* Shirish pointed out more areas we should be doing roundups for allocation size.Jeremy Allison2002-04-091-17/+16
| | | | Jeremy.
* Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.Jeremy Allison2002-04-021-28/+6
| | | | | Forward ported some of the code tidyups from 2.2. Jeremy.
* Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison2002-03-231-5/+4
| | | | | cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy.
* Remove the "stat open" code - make it inline. This should fix theJeremy Allison2002-03-201-50/+3
| | | | | | | | bugs with opening and renaming mp3 files, also the word rename problems that people have had for a while. Needs a make clean :-) make. Also added JohnR's printing fix. Jeremy.
* get the right return code for batch vs exclusive oplocksAndrew Tridgell2002-03-071-5/+12
|
* Fixed delete on close semantics - preparing for share mode rewrite.Jeremy Allison2002-03-071-13/+12
| | | | Jeremy.
* Reformat preparing for changes to come...Jeremy Allison2002-03-061-155/+155
| | | | Jeremy.
* Added "nt status support" parameter. Fix offline synchronisation.Jeremy Allison2002-02-271-5/+4
| | | | Jeremy.
* This is a nasty hack to fix "xcopy /o" from win2000 on a Samba shareAndrew Tridgell2002-02-261-3/+7
| | | | | | | | | | The hack passes the true ntcreate desired_access down to open_file_shared1() from the ntcreatex function. This is used to determine if share modes should be used in denying this open. This hack will become unnecessary when we redo open.c to use the proper NTCreateX semantics rather than trying to jam the ntcreate semantics into openX semantics.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* This is the current patch from Luke Leighton <lckl@samba-tng.org> to add aAndrew Bartlett2002-01-201-1/+1
| | | | | | | | | | | | | | | | | | degree of seperation betwen reading/writing the raw NamedPipe SMB packets and the matching operations inside smbd's RPC components. This patch is designed for no change in behaviour, and my tests hold that to be true. This patch does however allow for the future loadable modules interface to specify function pointers in replacement of the fixed state. The pipes_struct has been split into two peices, with smb_np_struct taking the information that should be generic to where the data ends up. Some other minor changes are made: we get another small helper function in util_sock.c and some of the original code has better failure debugs and variable use. (As per on-list comments). Andrew Bartlett
* Re-wrote the guts of the rename_internals code to cope with a reportedJeremy Allison2002-01-041-1/+2
| | | | | | | bug (renaming name -> name was failing, on W2K it succeeds). Simplified the common case, did a lot of work to ensure NT error codes are correctly reported back to client. Jeremy.
* Grr - numbers printed in hexadecimal should be preceeded by 0xTim Potter2001-12-201-7/+7
|
* Return NT_STATUS_OBJECT_NOT_FOUND or ERRbadpipe if pipe name not found.Jeremy Allison2001-12-181-1/+1
| | | | Jeremy.
* Fixed delete on close bug. Added core dump code to winbindd.Jeremy Allison2001-11-231-7/+14
| | | | Jeremy.
* Fix detection of RedHat 7.2.Jeremy Allison2001-11-151-0/+5
| | | | | | Remove unused old file. Test 42 byte reply to SMBntcreate (W2K does this). Jeremy.
* Formatting fixes only.Jeremy Allison2001-11-131-44/+43
| | | | Jeremy.
* Don't put a \n on the end of the arg to exit_server()Tim Potter2001-11-051-5/+5
|
* Made nt acl support a local parameter for w2ksp2 profile fix.Jeremy Allison2001-10-121-26/+54
| | | | 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-21/+12
|
* - enable MSDFS by default, there seems no reason not to have it enabledAndrew Tridgell2001-09-121-2/+0
| | | | | | | | by default in Samba 3.x - got rid of some unused parameters in Makefile.in - declare DEBUGLEVEL in debug.h rather than in each file
* the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-041-22/+20
| | | | the client code still needs some work
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-7/+7
| | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-45/+40
| | | | | | | | | | | | | | | | 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
* merge from 2.2Gerald Carter2001-08-101-1/+1
|
* Added Gerald's lanman printing only change to HEAD.Jeremy Allison2001-08-061-68/+4
| | | | Jeremy.
* uint -> uint32.Jeremy Allison2001-07-301-1/+1
| | | | Jeremy.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-2/+2
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-9/+9
| | | | | | | 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-2/+22
| | | | | set for a share. 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.
* This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison2001-03-301-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Ensure get/set NT ACL code is redirected through vfs.Jeremy Allison2001-03-261-2/+2
| | | | Jeremy.
* converted the nttrans code to unicode on the wireAndrew Tridgell2001-03-161-117/+13
|
* this patch does a number of things:Andrew Tridgell2001-03-131-8/+9
| | | | | | | | | | | | | | | - 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-2/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison2001-03-091-2/+2
| | | | | | | | | We were reading the endainness in the RPC header and then never propagating it to the internal parse_structs used to parse the data. Also removed the "align" argument to prs_init as it was *always* set to 4, and if needed can be set differently on a case by case basis. Now ready for AS/U testing when Herb gets it set up :-). Jeremy.
* Move to talloc control of SPOOL_XXX structs. Move to talloc control ofJeremy Allison2001-02-281-9/+0
| | | | | security descriptors and pointers. Syncup with 2.2 tree. Jeremy.
* Fix for DACL/SACL masking typo - spotted by medha@pezman.austin.ibm.com.Jeremy Allison2001-02-121-2/+2
| | | | Jeremy.
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-121-1/+10
| | | | | updated the POSIX_ACL code to be in sync. Jeremy.