1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

227 Commits

Author SHA1 Message Date
Jeremy Allison
3a9ceb6b3b Don't crash on setfileinfo on printer fsp.
Jeremy.
-
Jeremy Allison
4ff64f6970 Gone back to explicit queue number passing as snum - removed encoding of
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.
-
Andrew Tridgell
4a78137111 fixed 3 bugs in jeremys trans2 merge. Hopefully it now works. -
Jeremy Allison
082c5c084e Merged across trans2.c from SAMBA_2_2. UNIX extensions and passthrough
now supported in HEAD.
Jeremy.
-
Jeremy Allison
5841ca54b6 Don't use uint. It doesn't exist on some platforms and we don't define it.
Replaced with "unsigned int".
Jeremy.
-
Jeremy Allison
5e2571f424 Merge in mangle fixes from 2.2.
Jeremy.
-
Jeremy Allison
6b4affde16 Fix bug where setting end of file length to 8 was hitting erroneous
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.
-
Shirish Kalele
d926cc9896 Sync'ing SAMBA_2_2 with HEAD. -
Andrew Tridgell
79630bb2c0 two time handling bugfixes
- 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
-
Andrew Tridgell
699a1d9f46 fixed the display of the 'size on disk' property of files from w2k. -
Andrew Tridgell
be23d87a17 This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
-
Jeremy Allison
2475c09b35 Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.
Forward ported some of the code tidyups from 2.2.
Jeremy.
-
Jeremy Allison
14e2beca9b Ensure that setting file length can return disk full on failure.
Jeremy.
-
Jeremy Allison
3b1b8ac435 Fix the mp3 rename bug - also tidy up our open code and remove the special
cases for rename and unlink. Had to add desired_access into the share mode record.
Jeremy.
-
Jeremy Allison
bc8d4b9880 HEAD only fix for truncate from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
This code needs replacing with the trans2.c from 2.2.x.
Jeremy.
-
Jeremy Allison
00cabb2346 Ensure we get a real fd when opening for set file allocation.
Jeremy.
-
Jeremy Allison
504e5ef049 Remove the "stat open" code - make it inline. This should fix the
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.
-
Jeremy Allison
d9cb1bf20a Mask off the aDIR on setfileinfo.
Jeremy.
-
Jeremy Allison
4aaa4f52b8 Canonicalise pathnames returned to Windows directory separators.
Found by Andrew at connectathon with some new tests
Jeremy.
-
Andrew Tridgell
a75a2e9e2f This fixes 4 info levels in a trans2 find_first that should not be null
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 ".."
-
Andrew Tridgell
367358c738 this fixes the security tab on mapped drives for unicode clients.
Jeremy, this is wrong in 2.2.x
-
Andrew Tridgell
c78b16c1f8 check for empty parameters in qpathinfo -
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
Jeremy Allison
01ff6ce496 Same fix as went into 2.2 (I'm waiting for jerry to finish some code).
Jeremy.
-
Jeremy Allison
02b18f2cca First part of UNIX extensions (#ifdefed out) more to follow.
Jeremy.
-
Andrew Tridgell
c8a040f2aa fixed long filenames on win98
the fstype must not be null terminated or win98 doesn't recognise it
-
Jeremy Allison
1f3dcd99bd Ensure the CAN_WRITE is checked and prevents O_CREAT and O_TRUNC from
being set. Also prevent an open on a file on a readonly share from
setting delete on close.
Jeremy.
-
Jeremy Allison
a58d0f91f9 Fixed delete on close bug. Added core dump code to winbindd.
Jeremy.
-
Jeremy Allison
9148bb9eaa Tidyups when I was doing the big merge...
Jeremy.
-
Jeremy Allison
9ff6b0c20c Fixed allocation bug in database prog. Some format fixes.
Jeremy.
-
Jeremy Allison
d20949fe50 Use defined constants not integers.
Jeremy.
-
Jeremy Allison
c339a99a89 Only 1mb allocate slop.
Jeremy.
-
Jeremy Allison
36ea09d3a0 Merge overdue changes from 2.2. Fix <4gb write problem.
Jeremy.
-
Jeremy Allison
eba8204bfa Added more define bits. Fixed error in vol attributes.
Jeremy.
-
Tim Potter
dfb8566220 Don't put a \n on the end of the arg to exit_server() -
Jeremy Allison
ebba334c15 Made nt acl support a local parameter for w2ksp2 profile fix.
Jeremy.
-
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. -
Simo Sorce
a95943fde0 move to SAFE_FREE() -
Jeremy Allison
7816f79075 Removed unneeded set of delete on close in fsp->share_mode.
Jeremy.
-
Andrew Tridgell
2020738b88 when you update the share mode in the db you must also update
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!
-
Andrew Tridgell
83d9896c1e converted smbd to use NTSTATUS by default
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
-
Andrew Tridgell
cb8b21f71d fixed level2 find first for unisys clients -
Jeremy Allison
faae7512e0 Fix W2K profiles writing to a Samba PDC. Thanks to Microsoft for their help !
Jeremy.
-
Tim Potter
00703d306f More constant conversions. -
Jeremy Allison
fd89261a2c Fixed wrong placement of allocate code :-(.
Changed alignment offset to 1 to allow netmon to parse ok.
Jeremy.
-
Jeremy Allison
3bf2419f4b Added fixes to return correct error codes on space allocation fail.
Jeremy.
-
Jeremy Allison
0b052f103e Added "strict allocate" per share parameter. This causes actual on-disk allocation
to be done. Without it just does the ftruncate.
Jeremy.
-
Jeremy Allison
82f81c830d Fix for potential crash bug with bad fid.
Jeremy.
-
Andrew Tridgell
d5097b2f20 fixed some unicode and LANMAN2 bugs in trans2 find first/next -
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -