summaryrefslogtreecommitdiffstats
path: root/source/smbd/nttrans.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in earlier fix, caught by Ranjit @ HP.Jeremy Allison2003-03-081-1/+1
| | | | Jeremy.
* Use ERROR_NT, not ERROR_DOS as Andrew Bartlett pointed out.Jeremy Allison2003-03-071-1/+1
| | | | Jeremy.
* Found at Connectathon, .NET RC1 arranges trans/trans2/nttrans parametersJeremy Allison2003-03-071-22/+80
| | | | | differently to W2K, cope with this. Jeremy.
* add a note about relative opens with blank paths - its a re-open!Andrew Tridgell2003-02-121-0/+10
| | | | (not implemented yet)
* BIG patch...Andrew Bartlett2003-01-021-1/+1
| | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-2/+2
| | | | | named. Ensure we can query them. Jeremy.
* Fix for 64 bit issues with oplocks and allocation size.Jeremy Allison2002-12-041-9/+9
| | | | Jeremy.
* Fixed nasty bug where file writes with start offsets in the rangeJeremy Allison2002-12-031-2/+2
| | | | | | | | | | 0x80000000 -> 0xFFFFFFFF would fail as they were being cast from IVAL (uint32) to SMB_OFF_T (off_t or off64_t, both *signed* types). The sign extension would cause the offset to be treated as negative. Thanks to Herb for helping me track this one down (IRIX is good for large file tests :-). Jeremy. PS. That horrid EXEXIST thing has broken configure.....
* Return correct FILE_SUPERSEDED response - IFSTEST strikes again...Jeremy Allison2002-08-281-2/+8
| | | | Jeremy.
* Merged initial allocation code for IFSTEST fix.Jeremy Allison2002-08-231-3/+37
| | | | Jeremy.
* We were returning incorrect flags in smb_action....Jeremy Allison2002-08-221-6/+9
| | | | | IFSTEST strikes again :-). Jeremy.
* Fixed IFSTEST errors with OpenParams... more to go.Jeremy Allison2002-08-221-9/+9
| | | | Jeremy.
* IFSTEST fixes for open fid, nametoolong.Jeremy Allison2002-08-201-0/+15
| | | | Jeremy.
* IFS kit test - don't allow TEMP attribute on directory open.Jeremy Allison2002-08-191-0/+12
| | | | Jeremy.
* 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.