summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* greatly expanded the lock4 locking test. we now pass all but one testAndrew Tridgell2000-01-131-45/+93
| | | | | - that should be fixed soon. (This used to be commit 23bb936e1fdeab2ad697ed946c945ef5ce87357d)
* changes to reflect the new syntax of the locking calls.Andrew Tridgell2000-01-133-20/+19
| | | | (This used to be commit 44117df2c908d473b3e1a1020b22af6d584809ef)
* 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. (This used to be commit 7f2a493095887cb0aae915ac36b9cded71d3a7a7)
* 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. (This used to be commit 1bbc1ce18b8ccb92b5a78ee648539a591a452118)
* added Enosuchshare and a lock_type enumAndrew Tridgell2000-01-131-0/+4
| | | | (This used to be commit 6927aa19052baba2dcfcdec7564dad1a17f4c562)
* new prototypesAndrew Tridgell2000-01-131-5/+22
| | | | (This used to be commit 671e52cec2f254a11f9dcef9ef692afa3b86c679)
* 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) (This used to be commit 09dbe8bccec244c8ea0893a7d8ca4fe85d5420f7)
* added locking/brlock.c, a byte range locking systemAndrew Tridgell2000-01-131-1/+1
| | | | (This used to be commit 67b7b2a5a68fd22222bd54771c779f752ff59917)
* Added missing #ifdef for WITH_UTMP.Jeremy Allison2000-01-131-0/+2
| | | | | Jeremy. (This used to be commit 465c5a830827b82f0535d4507b3432c2df6de658)
* Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.Jeremy Allison2000-01-129-576/+951
| | | | | Jeremy. (This used to be commit 95d37a1d25d56316c80eec54aea1f358cd621d4c)
* Use slprintf not snprintf.Jeremy Allison2000-01-121-1/+1
| | | | | Jeremy. (This used to be commit b0a5ba9e01e71a64c7e693b6bf3f9bd499d3e095)
* Fix problems with broken libc fvct returns.Jeremy Allison2000-01-121-1/+8
| | | | | Jeremy. (This used to be commit 6b61f2fe66a62082fdab998ec7bbb1184b9583d7)
* Fixed pointer arithmetic found by IRIX compiler.Jeremy Allison2000-01-111-1/+1
| | | | | Jeremy. (This used to be commit 20d72e8959fc800836369e4c970f7cb84b95ac9a)
* Fixed bug in unix_mask_match() that caused veto files not to work.Jeremy Allison2000-01-111-31/+9
| | | | | Jeremy. (This used to be commit f5fedf80bce84dba1468631202337077511bcd25)
* 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? (This used to be commit 3362fcdfa492cfd1d9d4ec35ef2108192302b984)
* 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 (This used to be commit 49637936b6e9478df248c4ef73d818870c73b597)
* don't treat a packet as a oplock break unless it is a request, not aAndrew Tridgell2000-01-101-1/+2
| | | | | reply! (This used to be commit 45b8f1c92cf7ecae35240e72741e5ac952587c58)
* extent smbtorture to test with both an exe file and a dat fileAndrew Tridgell2000-01-081-37/+43
| | | | (This used to be commit dd2ce575047eb57288bff11669512132fd347fda)
* 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 (This used to be commit 3f7fea58e8da6d98acadaabf0498ea2e88ea5678)
* 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 (This used to be commit e21aa4cb088f348139309d29c85c48c8b777cff5)
* 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 :) (This used to be commit 2071105b439e87cb1c7c3a8c1b2046441eb46270)
* improved the error checkingAndrew Tridgell2000-01-083-27/+86
| | | | (This used to be commit 2a152998a1489dead0edadb06f78b0ad6ede1a3a)
* Fix minor typos in the yodl for smb.conf.5 and fix minor English problems :-)Richard Sharpe2000-01-081-2/+2
| | | | (This used to be commit eeb9482f0816558f22e47b1ea4c4272453d467ac)
* smbd/mangle.cJeremy Allison2000-01-085-7/+15
| | | | | | | smbd/negprot.c: Tidyup of static initializers. smbd/server.c: Fix -l option. Jeremy. (This used to be commit d120f22fefde21b38e43ea5ad0180bf27304d2eb)
* 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. (This used to be commit 974af581fe428fd0233c2516b16a5132b0e1b583)
* fixed a commentAndrew Tridgell2000-01-071-1/+1
| | | | (This used to be commit 32f29c490e6265c8a383ce771943f937c49bfabc)
* the -i options are gone from nmbd and smbd - use the smb.confAndrew Tridgell2000-01-072-18/+2
| | | | | | | | parameter "netbios scope" instead -i is still available in the command line utils, as these may be used to contact another scope (This used to be commit 9fd955409f535850c33af2493d4d2ae493933386)
* netbios scope is a DOS_STRINGAndrew Tridgell2000-01-071-1/+1
| | | | (This used to be commit e42b629baa15bf9328945d641d780fc4c7b3ffe0)
* always restart nmbd and smbd when asked, even if they appear not to beAndrew Tridgell2000-01-071-4/+2
| | | | | responding. They could be stuck (This used to be commit 8728c0bc94743935cec28caa83d93833ea3aa6a6)
* remove scope parameter here tooAndrew Tridgell2000-01-071-3/+3
| | | | (This used to be commit c78deb1d229bd301be483a256f1fd2047cec6120)
* added "netbios scope" docsAndrew Tridgell2000-01-071-0/+8
| | | | (This used to be commit ccb6e36d65e48ae08585d8905b975e601bdfcb2b)
* this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-0732-121/+90
| | | | | | | | | This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name. (This used to be commit b563be824b8c3141c49558eced7829b48d4ab26f)
* don't use strcpyAndrew Tridgell2000-01-071-1/+2
| | | | (This used to be commit bf9b1328c5843eb217eff4ca05645498de2def82)
* don't require readlineAndrew Tridgell2000-01-071-1/+13
| | | | (This used to be commit 2dbe70da8db548b3423c6c0de0f282fdf82f0fad)
* - patch from Rusty to neaten up the code a bitAndrew Tridgell2000-01-072-232/+109
| | | | | - fixed a race condition in tdb_open() (This used to be commit 21d4882f64a65ee1786231eb55b7768bb44921fd)
* Removed unneeded #define.Jeremy Allison2000-01-061-2/+0
| | | | | Jeremy. (This used to be commit c33b6d2aba63027408bd9895d2fedfc82f69a8f0)
* Fixed spurious error message when doing a 'put' of an empty file.Jeremy Allison2000-01-061-1/+4
| | | | | Jeremy (This used to be commit 9ba8ad1d3d4559fdf6695a18c99e83a1d37c9ac4)
* Generic wildcard matching fix from weidel@multichart.de.Jeremy Allison2000-01-061-19/+80
| | | | | Jeremy. (This used to be commit 8b790cf3e21dd415e1daba24f5eba219e824cdc4)
* Re-added "dfree command" functionality that was described in the man pagesJeremy Allison2000-01-063-1/+50
| | | | | | but was not in the code. Jeremy. (This used to be commit f4898a1f16a2dbc25d062b0088d6c589a34c93a0)
* Fix for renaming directories on OS/2 server. Fix from John Janosik ↵Jeremy Allison2000-01-061-1/+1
| | | | | | | <jpjanosi@us.ibm.com>. Jeremy. (This used to be commit b3c0dd72339b2004684b1650c8f7832577bc44b0)
* Moved check_plaintext_password() into smbd/chgpasswd.c from smbd/ipc.c.Jeremy Allison2000-01-057-45/+54
| | | | | | | configure configure.in include/config.h.in: Added <sys/un.h> autoconf code for Luke's UNIX domain sockets code. Jeremy. (This used to be commit 210d61db08136122f51a93428607fccd582c9e7d)
* client/client.c: I18N fixes.Jeremy Allison2000-01-053-100/+153
| | | | | | | smbd/dir.c: Reformatting comments. smbd/ipc.c: New password change code for Win98. Jeremy. (This used to be commit 9e90122afd1b6a7cf38660fc3bc3aa8e526bf08b)
* implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell2000-01-059-41/+171
| | | | | | | | lp_string() bug properly. we still need to add lp_talloc_free() calls in all the main event loops, I've only put it in smbd and nmbd thus far. (This used to be commit aa7f81552540f5dca2c146f5edd805611d5b390f)
* lower the default hash size a bitAndrew Tridgell2000-01-051-1/+1
| | | | (This used to be commit 51ed6e8cec47642641e6b26682fd6f25624b19ae)
* use a minimal hash size in the unexpected packet database. A largeAndrew Tridgell2000-01-051-1/+1
| | | | | | hash is only useful when we fetch by key, not when we use tdb_traverse() (This used to be commit e154f041e8ec8b1097d4a0c727c68d217effba34)
* Added "crap" fix for rotating string buffers. (Increased to 20, added #define).Jeremy Allison2000-01-041-4/+5
| | | | | | Andrew - please fix this properly when you have time :-). Jeremy. (This used to be commit 8515bdb39c603864246d3a4ff2349fa76b0bd86e)
* using read_with_timeout(), min data size 16 bytes (DCE/RPC header), maxLuke Leighton2000-01-041-1/+5
| | | | | | | size of SMBtrans response, timeout of 10 seconds. read_data() _certainly_ doesn't work, as you don't know what size of the data is going to come back that needs to be fed back in the SMBtrans response. yes, oops :-) (This used to be commit 70d6f7635776bba98c9c09405eff6c2087dac590)
* oops, must use read_data() not read(), as read() may only provideLuke Leighton2000-01-041-2/+2
| | | | | | part of the data stream. read_data() is a wrapper to guarantee receiving exactly the requested number of bytes. (This used to be commit 90c27b7bffa9b2121eaed0e07931830c3ba308d7)
* Fixed getgrent() recurse problem.Jeremy Allison2000-01-041-8/+45
| | | | | Jeremy. (This used to be commit b5420f6152d5df415231cb3fdf614542dbbd7db3)
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-0324-1239/+3542
| | | | | to using internal msrpc code in smbd. (This used to be commit 8976e26d46cb991710bc77463f7f928ac00dd4d8)