summaryrefslogtreecommitdiffstats
path: root/source/smbd/trans2.c
Commit message (Collapse)AuthorAgeFilesLines
* introduced a get_file_size() macro in trans2.c to make it easier toAndrew Tridgell2002-07-291-19/+21
| | | | experiment with file size returns
* an initial fix for handling sparse files in smbdAndrew Tridgell2002-07-291-15/+25
| | | | | | | | 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.
* Don't crash on setfileinfo on printer fsp.Jeremy Allison2002-07-181-1/+2
| | | | Jeremy.
* Gone back to explicit queue number passing as snum - removed encoding ofJeremy Allison2002-07-171-2/+5
| | | | | | queueid in job number. This means we must have an internal tdb to store mapping from 16 bit RAP jobid's to 32 bit RPC jobids. Jeremy.
* fixed 3 bugs in jeremys trans2 merge. Hopefully it now works.Andrew Tridgell2002-06-261-8/+4
|
* Merged across trans2.c from SAMBA_2_2. UNIX extensions and passthroughJeremy Allison2002-06-241-1073/+1513
| | | | | now supported in HEAD. Jeremy.
* 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.
* Merge in mangle fixes from 2.2.Jeremy Allison2002-06-131-2/+1
| | | | Jeremy.
* Fix bug where setting end of file length to 8 was hitting erroneousJeremy Allison2002-05-131-0/+4
| | | | | | check for OS/2 EA set. This caused Macromedia movie files to not export correctly onto a Samba share. Originally spotted by Michel Stoop stoop@ncg.nl. Jeremy.
* Sync'ing SAMBA_2_2 with HEAD.Shirish Kalele2002-05-091-8/+15
|
* two time handling bugfixesAndrew Tridgell2002-04-131-1/+9
| | | | | | | | - the pending mtime overrides the current file time in setfileinfo - a later wtime can override a mtime on setfileinfo this fixes the date of file copies in win2000
* fixed the display of the 'size on disk' property of files from w2k.Andrew Tridgell2002-04-121-4/+5
|
* This split the mangling code up to allow for the possibility of multipleAndrew Tridgell2002-04-111-13/+13
| | | | | | mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty.
* Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.Jeremy Allison2002-04-021-0/+14
| | | | | Forward ported some of the code tidyups from 2.2. Jeremy.
* Ensure that setting file length can return disk full on failure.Jeremy Allison2002-03-281-2/+7
| | | | Jeremy.
* Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison2002-03-231-1/+1
| | | | | cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy.
* HEAD only fix for truncate from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.Jeremy Allison2002-03-201-1/+1
| | | | | This code needs replacing with the trans2.c from 2.2.x. Jeremy.
* Ensure we get a real fd when opening for set file allocation.Jeremy Allison2002-03-201-1/+1
| | | | Jeremy.
* Remove the "stat open" code - make it inline. This should fix theJeremy Allison2002-03-201-7/+2
| | | | | | | | 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.
* Mask off the aDIR on setfileinfo.Jeremy Allison2002-03-051-0/+5
| | | | Jeremy.
* Canonicalise pathnames returned to Windows directory separators.Jeremy Allison2002-03-041-0/+1
| | | | | Found by Andrew at connectathon with some new tests Jeremy.
* This fixes 4 info levels in a trans2 find_first that should not be nullAndrew Tridgell2002-02-251-4/+6
| | | | | | | | terminated for the filenames. this is what caused win2k to go into a loop sending 20000 packets to set an acl on a directory. It didn't recognise ".." with a null termination as being ".."
* this fixes the security tab on mapped drives for unicode clients.Andrew Tridgell2002-02-211-19/+12
| | | | Jeremy, this is wrong in 2.2.x
* check for empty parameters in qpathinfoAndrew Tridgell2002-02-051-0/+4
|
* 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.