summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* made cvs main up-to-date with samba_tng, with addition of process id toLuke Leighton2000-01-217-10/+32
| | | | msrpc loop-back interface.
* Moved Herb's global -> local changes to HEAD.Jeremy Allison2000-01-201-2/+2
| | | | Jeremy.
* Added Herb's swat fixes.Jeremy Allison2000-01-181-2/+2
| | | | Jeremy.
* SAMR_R_UNKNOWN_38 is 3 uint16 params (4-byte aligned) followed by status code.Luke Leighton2000-01-172-5/+3
|
* fixed some typos in access_table() which, amaziingly enough, make noAndrew Tridgell2000-01-161-3/+3
| | | | difference to the result.
* made access_table() a pure logic function - makes it simpler to applyAndrew Tridgell2000-01-161-16/+26
| | | | maths to
* renamed DENY to DENY1Andrew Tridgell2000-01-161-5/+95
| | | | | added DENY2 test that checks all 648 deny combinations for the case of two opens on the same connection
* use GET_DENY_MODE() macroAndrew Tridgell2000-01-161-2/+1
|
* as obelix would say "these romans are crazy"Andrew Tridgell2000-01-161-40/+59
| | | | | | | | | I've finally got the access table code right for the case where the two opens are on the same connection. It is _incredibly_ complex, but now all 1296 test cases pass. I'll be very surprised if anyone by MS and us gets this right at CIFS2000
* use GET_DENY_MODE() macro instead of the bit shiftAndrew Tridgell2000-01-161-3/+2
|
* proto updateAndrew Tridgell2000-01-161-2/+4
|
* a consequence of the access_table() fixes is that we can't treatAndrew Tridgell2000-01-161-0/+2
| | | | | DENY_DOS and DENY_FCB as the same thing anymore (the difference matters for *.exe files)
* rewrote the access_table() code to get it right for *.exe, *.dll,Andrew Tridgell2000-01-161-27/+41
| | | | | | | | | *.sym and *.com files. I still find it incredible that SMB treats file locking differently depending on the file name - that is so ugly it stinks. anyway, we now behave the same way as NT, except for the same-connection case which I'm still working on.
* use string_set() instead of string_init()Andrew Tridgell2000-01-163-41/+31
| | | | bug pointed out by Richard
* added code to allow traversal of the byte range lock databaseAndrew Tridgell2000-01-163-4/+72
| | | | this is used with "smbstatus -B" to dump the lock list
* fixed a formatting errorAndrew Tridgell2000-01-161-1/+1
|
* make string_init() staticAndrew Tridgell2000-01-162-2/+2
| | | | use string_set() instead, to avoid the bug Richard discovered
* make a br_off a SMB_BIG_UINTAndrew Tridgell2000-01-161-1/+1
|
* useable_space does not include the alignment offset calculations.Jeremy Allison2000-01-141-1/+8
| | | | | Bugfix from Marc_Jacobsen@hp.com. Jeremy.
* HP changes for registry querying.Jeremy Allison2000-01-141-1/+9
| | | | Jeremy.
* Added HP change.Jeremy Allison2000-01-141-53/+54
| | | | Jeremy.
* casts and defines to make solaris happyAndrew Tridgell2000-01-143-3/+7
|
* damn, Solaris already has a "enum lock_type"Andrew Tridgell2000-01-145-15/+15
| | | | changed it to "enum brl_type"
* we now pass all byte range locking testsAndrew Tridgell2000-01-146-25/+94
| | | | | the last piece was to use a smb timeout slightly larger than the locking timeout in bloking locks to prevent a race
* Added "inherit permissions" patch.Jeremy Allison2000-01-1410-33/+122
| | | | | Fixed locking bug found by Andrew. Jeremy.
* some more work on the byte range lockingAndrew Tridgell2000-01-143-22/+31
| | | | | | | | note the ugly global_smbpid - I hope that won't bethere for long, I just didn't want to do two lots of major surgery at the one time. Using global_smbpid avoids the big change of getting rid of our inbuf/outbuf interface to reply routines. I'll do that once the locking stuff passes all tests.
* greatly expanded the lock4 locking test. we now pass all but one testAndrew Tridgell2000-01-131-45/+93
| | | | - that should be fixed soon.
* changes to reflect the new syntax of the locking calls.Andrew Tridgell2000-01-133-20/+19
|
* the bulk of the new byte range locking coodeAndrew Tridgell2000-01-132-45/+296
| | | | it doesn't map to posix locks yet, that will come later.
* the lock routines now take a enumerated type for read/write locks, andAndrew Tridgell2000-01-131-4/+4
| | | | | | | | we now don't pass the lock type at all for unlocks. I was surprised to discover that NT totally ignores the lock type in unlocks. It unlocks a matching write lock if there is one, otherwise it removes the first matching read lock.
* added Enosuchshare and a lock_type enumAndrew Tridgell2000-01-131-0/+4
|
* new prototypesAndrew Tridgell2000-01-131-5/+22
|
* defined br_off as a type for byte range offsets. For now I've set itAndrew Tridgell2000-01-131-0/+3
| | | | | as SMB_OFF_T, we need to do some autoconf changes to generate a 64 bit int whenever possible (eg. long long on 32 bit i386)
* added locking/brlock.c, a byte range locking systemAndrew Tridgell2000-01-131-1/+1
|
* Added missing #ifdef for WITH_UTMP.Jeremy Allison2000-01-131-0/+2
| | | | Jeremy.
* Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.Jeremy Allison2000-01-127-575/+913
| | | | Jeremy.
* Use slprintf not snprintf.Jeremy Allison2000-01-121-1/+1
| | | | Jeremy.
* Fix problems with broken libc fvct returns.Jeremy Allison2000-01-121-1/+8
| | | | Jeremy.
* Fixed pointer arithmetic found by IRIX compiler.Jeremy Allison2000-01-111-1/+1
| | | | Jeremy.
* Fixed bug in unix_mask_match() that caused veto files not to work.Jeremy Allison2000-01-111-31/+9
| | | | Jeremy.
* modified smbd/msrpc credential transfer system. user session keyLuke Leighton2000-01-113-1/+32
| | | | | | | | | is *missing* from samba cvs main, therefore it is set to all zeros. this will cause, amongst other things, administrator-changing-user-passwords, and setting up new accounts, to fail, as the user's password can only be decoded with the session key (in this case, the administrator's usr sess key). it's never a perfect world, is it?
* I'm currently designing a new locking system (using a tdb database!)Andrew Tridgell2000-01-103-27/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that will make us match NT semantics exactly and do away with the horrible fd multiplexing in smbd. this is some diag stuff to get me started. - added the ability to do read or write locks in clientgen.c - added a LOCK4 test to smbtorture. This produces a report on the server and its locking capabilities. For example, NT4 gives this: the same process cannot set overlapping write locks the same process can set overlapping read locks a different connection cannot set overlapping write locks a different connection can set overlapping read locks a different pid cannot set overlapping write locks a different pid can set overlapping read locks the same process can set the same read lock twice the same process cannot set the same write lock twice the same process cannot override a read lock with a write lock the same process can override a write lock with a read lock a different pid cannot override a write lock with a read lock the same process cannot coalesce read locks this server does strict write locking this server does strict read locking whereas Samba currently gives this: the same process can set overlapping write locks the same process can set overlapping read locks a different connection cannot set overlapping write locks a different connection can set overlapping read locks a different pid can set overlapping write locks a different pid can set overlapping read locks the same process can set the same read lock twice the same process can set the same write lock twice the same process can override a read lock with a write lock the same process can override a write lock with a read lock a different pid can override a write lock with a read lock the same process can coalesce read locks this server does strict write locking this server does strict read locking win95 gives this - I don't understand why! the same process cannot set overlapping write locks the same process cannot set overlapping read locks a different connection cannot set overlapping write locks a different connection cannot set overlapping read locks a different pid cannot set overlapping write locks a different pid cannot set overlapping read locks the same process cannot set the same read lock twice the same process cannot set the same write lock twice the same process cannot override a read lock with a write lock the same process cannot override a write lock with a read lock a different pid cannot override a write lock with a read lock the same process cannot coalesce read locks this server does strict write locking this server does strict read locking
* don't treat a packet as a oplock break unless it is a request, not aAndrew Tridgell2000-01-101-1/+2
| | | | reply!
* extent smbtorture to test with both an exe file and a dat fileAndrew Tridgell2000-01-081-37/+43
|
* fix a error in access_table revealed by the new deny test in smbtorture. We ↵Andrew Tridgell2000-01-081-3/+5
| | | | now exactly match NT for normal files. We still don't match for *.exe files though
* cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.Andrew Tridgell2000-01-085-10/+9
| | | | | | After fixing that I needed to use O_RDWR instead of O_WRONLY in several places to avoid the silly bug in MS servers that doesn't allow getattrE on a file opened with O_WRONLY
* added a DENY test that tests deny mode handling. It produces a matrixAndrew Tridgell2000-01-081-2/+86
| | | | | of 324 lines (6*6*3*3) of all possible deny mode behaviour. This allows us to compare with NT. We currently don't match :)
* improved the error checkingAndrew Tridgell2000-01-083-27/+86
|
* smbd/mangle.cJeremy Allison2000-01-085-7/+15
| | | | | | smbd/negprot.c: Tidyup of static initializers. smbd/server.c: Fix -l option. Jeremy.
* Fixed deny mode bug :Jeremy Allison2000-01-081-9/+9
| | | | | | | : If a file is resident on NT and the first user opens it read/write with DENY_READ then a subsequent : attempt by a second user (running under Windows 95) to open it read/write DENY_NONE fails. : Under samba 2.0.5a the second open succeeds but the file is write only. Jeremy.