kai/samba.git
24 years agofile ntdom.c was initially added on branch SAMBA_TNG.
Tim Potter [Wed, 9 Feb 2000 23:47:02 +0000 (23:47 +0000)]
file ntdom.c was initially added on branch SAMBA_TNG.

24 years agoFixed wildcard match bug with '****' with smbclient. Found by Andrew (damn him! :-).
Jeremy Allison [Wed, 9 Feb 2000 15:50:44 +0000 (15:50 +0000)]
Fixed wildcard match bug with '****' with smbclient. Found by Andrew (damn him! :-).
Jeremy.

24 years agoCorrect for for core dump in smbpasswd with cli_errstr().
Jeremy Allison [Wed, 9 Feb 2000 15:43:09 +0000 (15:43 +0000)]
Correct for for core dump in smbpasswd with cli_errstr().
Jeremy.<F4>plit the test for NetBIOS name being *SMBSERVER.

24 years agoDefensive programming for cli_error().
Jeremy Allison [Wed, 9 Feb 2000 14:45:22 +0000 (14:45 +0000)]
Defensive programming for cli_error().
Jeremy.

24 years agoupdate masktest for new make_nmb_name() syntax
Andrew Tridgell [Wed, 9 Feb 2000 14:17:12 +0000 (14:17 +0000)]
update masktest for new make_nmb_name() syntax

24 years agoadded masktest to head branch, in preparation for another assault on
Andrew Tridgell [Wed, 9 Feb 2000 14:10:08 +0000 (14:10 +0000)]
added masktest to head branch, in preparation for another assault on
the wildcard handling code

24 years agoMoved over lib/util_sec (with added fixes) as the HEAD source
Jeremy Allison [Tue, 8 Feb 2000 11:32:43 +0000 (11:32 +0000)]
Moved over lib/util_sec (with added fixes) as the HEAD source
seems to have drifted a little.
Jeremy.

24 years agoHum, I should remove my gloves when I'm in front of an xterm :)
Jean-François Micouleau [Mon, 7 Feb 2000 18:06:54 +0000 (18:06 +0000)]
Hum, I should remove my gloves when I'm in front of an xterm :)

fixed a stupid bug in unistr2_to_ascii that I introduced

fixed getprinterdata()

24 years agomake proto ...
Jean-François Micouleau [Mon, 7 Feb 2000 16:28:41 +0000 (16:28 +0000)]
make proto ...

and the Makefile.in file

J.F.

24 years agospoolss include definitions
Jean-François Micouleau [Mon, 7 Feb 2000 16:27:03 +0000 (16:27 +0000)]
spoolss include definitions

J.F.

24 years agospoolss definitions.
Jean-François Micouleau [Mon, 7 Feb 2000 16:25:15 +0000 (16:25 +0000)]
spoolss definitions.

also added some prs_struct functions, 'cause I'm handling buffers as
prs_struct.

J.F.

24 years agoJeremy can you check lib/util_unistr.c for codepages support ?
Jean-François Micouleau [Mon, 7 Feb 2000 16:22:16 +0000 (16:22 +0000)]
Jeremy can you check lib/util_unistr.c for codepages support ?
I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage
support.

J.F.

24 years agoFirst commit of the spoolss code to the HEAD branch.
Jean-François Micouleau [Mon, 7 Feb 2000 16:17:59 +0000 (16:17 +0000)]
First commit of the spoolss code to the HEAD branch.

still needs a lot of cleaning/debuging.

J.F.

24 years agoAdded check for SGI IRIX brokenness with semaphores when using gcc.
Jeremy Allison [Mon, 7 Feb 2000 14:27:04 +0000 (14:27 +0000)]
Added check for SGI IRIX brokenness with semaphores when using gcc.
Code from Don Badrak <dbadrak@census.gov>
Jeremy.

24 years agoFix some more compile warnings.
Tim Potter [Mon, 7 Feb 2000 00:41:58 +0000 (00:41 +0000)]
Fix some more compile warnings.

24 years agoFixed compile warning in locking.c:traverse_fn()
Tim Potter [Mon, 7 Feb 2000 00:24:04 +0000 (00:24 +0000)]
Fixed compile warning in locking.c:traverse_fn()

24 years agoAfter 3AM, it's getting hard for Luke :-)
Jean-François Micouleau [Fri, 4 Feb 2000 15:19:28 +0000 (15:19 +0000)]
After 3AM, it's getting hard for Luke :-)

24 years agoFix some compile warnings.
Tim Potter [Fri, 4 Feb 2000 05:18:06 +0000 (05:18 +0000)]
Fix some compile warnings.

24 years agoHopefully these changes will actually stick.
Tim Potter [Fri, 4 Feb 2000 05:08:16 +0000 (05:08 +0000)]
Hopefully these changes will actually stick.

24 years ago1) added void* state argument to tdb_traverse. guess what! there were
Luke Leighton [Fri, 4 Feb 2000 04:59:31 +0000 (04:59 +0000)]
1) added void* state argument to tdb_traverse.  guess what!  there were
two places i found where it was appropriate to _use_ that third argument,
in locking.c and brlock.c!  there was a static traverse_function and
i removed the static variable, typecast it to a void*, passed it to
tdb_traverse and re-cast it back to the traverse_function inside the
tdb_traverse function.  this makes the use of tdb_traverse() reentrant,
which is never going to happen, i know, i just don't like to see
statics lying about when there's no need for them.

as i had to do in samba-tng, all uses of tdb_traverse modified to take
the new void* state argument.

2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient.
i don't know how the other samba team members would react if i deleted
rpcclient from cvs main.  damn, that code's so old, it's unreal.
20 rpcclient commands, instead of about 70 in SAMBA_TNG.

24 years agoPut back lots of missing calls to dos_to_unix(). Thanks to
Tim Potter [Thu, 3 Feb 2000 23:08:24 +0000 (23:08 +0000)]
Put back lots of missing calls to dos_to_unix().  Thanks to
aono@cc.osaka-kyoiku.ac.jp (Tomoki AONO)

24 years agoBacked out -rdynamic linker option. It seems to be GNU ld specific.
Tim Potter [Thu, 3 Feb 2000 05:55:11 +0000 (05:55 +0000)]
Backed out -rdynamic linker option.  It seems to be GNU ld specific.
Need a platform independant way of exporting symbols for dlopen().
Perhaps this is only needed for certain platforms anyway...

24 years agomake proto
Tim Potter [Thu, 3 Feb 2000 05:18:26 +0000 (05:18 +0000)]
make proto

24 years agoMega-VFS merge. Yeah baby!
Tim Potter [Thu, 3 Feb 2000 05:17:25 +0000 (05:17 +0000)]
Mega-VFS merge.  Yeah baby!

Synopsis: change every disk access function to work through a vfs_ops
structure contained in the connection_struct.

24 years agoAdded 'vfs object' and 'vfs options' smb.conf parameters.
Tim Potter [Thu, 3 Feb 2000 05:11:26 +0000 (05:11 +0000)]
Added 'vfs object' and 'vfs options' smb.conf parameters.

24 years agoComments to use vfs_* functions instead of dos_* unless really
Tim Potter [Thu, 3 Feb 2000 05:10:09 +0000 (05:10 +0000)]
Comments to use vfs_* functions instead of dos_* unless really
accessing files on local disk.

24 years agoAdd -rdynamic to LDFLAGS if libdl found.
Tim Potter [Thu, 3 Feb 2000 05:07:06 +0000 (05:07 +0000)]
Add -rdynamic to LDFLAGS if libdl found.

24 years agoAdded smbd/vfs.o and smbd/vfs-wrap.o to smbd objects.
Tim Potter [Thu, 3 Feb 2000 05:05:29 +0000 (05:05 +0000)]
Added smbd/vfs.o and smbd/vfs-wrap.o to smbd objects.

24 years agoAdded .dummy file.
Tim Potter [Thu, 3 Feb 2000 04:49:11 +0000 (04:49 +0000)]
Added .dummy file.

24 years agoBusting up of source/include/smb.h into smaller pieces which can be
Tim Potter [Thu, 3 Feb 2000 04:47:50 +0000 (04:47 +0000)]
Busting up of source/include/smb.h into smaller pieces which can be
#included by VFS modules without bringing in too much other junk.

24 years agoSome strange CVS weirdness happening here. I had SAMBA_TNG tags in my
Tim Potter [Thu, 3 Feb 2000 04:40:56 +0000 (04:40 +0000)]
Some strange CVS weirdness happening here.  I had SAMBA_TNG tags in my
head branch CVS/Entries file leading to lots of fun and games.  )-:

24 years agofile srv_netlogond_nt.c was initially added on branch SAMBA_TNG.
Luke Leighton [Wed, 2 Feb 2000 21:56:20 +0000 (21:56 +0000)]
file srv_netlogond_nt.c was initially added on branch SAMBA_TNG.

24 years agosystem_name not server_name
Tim Potter [Tue, 1 Feb 2000 03:44:33 +0000 (03:44 +0000)]
system_name not server_name

24 years agoPass arguments to ./configure
Tim Potter [Mon, 31 Jan 2000 02:44:05 +0000 (02:44 +0000)]
Pass arguments to ./configure

24 years agomade "enable" and "disable" the default "lpresume" and "lppause" commands
Herb Lewis [Sun, 30 Jan 2000 01:00:00 +0000 (01:00 +0000)]
made "enable" and "disable" the default "lpresume" and "lppause" commands
for SYSV instead of the lpc commands (since these are BSD commands)

I still don't like the default "lppause" and "lpresume" commands for
SYSV since these seem to be SUN specific additions to the lp command
(at least I don't find them in IRIX and HPUX). I think this should be
inside an ifdef SUN??? but I'm not sure what the define should be so
I have left it for now.

24 years agoWrapped popen calls in HAVE_POPEN - needed if we are to add the
Jeremy Allison [Sat, 29 Jan 2000 00:23:40 +0000 (00:23 +0000)]
Wrapped popen calls in HAVE_POPEN - needed if we are to add the
env patch.
Jeremy.

24 years agoFix from Motonobu TAKAHASHI to sort code page parameters first.
Jeremy Allison [Sat, 29 Jan 2000 00:03:50 +0000 (00:03 +0000)]
Fix from Motonobu TAKAHASHI to sort code page parameters first.
Needed when reading the rest of smb.conf.
Jeremy.

24 years agoModified auto alignment of ud[] struct on stack to be declared as an
Jeremy Allison [Fri, 28 Jan 2000 23:47:31 +0000 (23:47 +0000)]
Modified auto alignment of ud[] struct on stack to be declared as an
array of pointers. This should cause alignment on a correct boundary..
Spotted by Darren Reed <darrenr@telnetmedia.com>.
Jeremy.

24 years agoFixed code page conversions of messages outgoing/incoming.
Jeremy Allison [Thu, 27 Jan 2000 01:09:21 +0000 (01:09 +0000)]
Fixed code page conversions of messages outgoing/incoming.
Jeremy.

24 years agoAdded hash-based stat cache code from Ying Chen.
Jeremy Allison [Wed, 26 Jan 2000 21:25:35 +0000 (21:25 +0000)]
Added hash-based stat cache code from Ying Chen.
Jeremy.

24 years agoSecond set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.
Jeremy Allison [Wed, 26 Jan 2000 00:12:35 +0000 (00:12 +0000)]
Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.
Stop makeing function calls for every use of skip_multibyte_char. This function
is called several *million* times during a NetBench run :-).
Jeremy.

24 years agoFirst set of speed improvements from Ying Chen <ying@almaden.ibm.com>.
Jeremy Allison [Tue, 25 Jan 2000 22:57:51 +0000 (22:57 +0000)]
First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.
Inline several commonly used functions as macros.
Jeremy.

24 years agotdb record read error return check fix from Dave Airlie <airlied@samba.org>.
Jeremy Allison [Mon, 24 Jan 2000 23:12:02 +0000 (23:12 +0000)]
tdb record read error return check fix from Dave Airlie <airlied@samba.org>.
Jeremy.

24 years agowe need -lc when making shared objects or glibc doesn't do its magic
Andrew Tridgell [Mon, 24 Jan 2000 03:39:24 +0000 (03:39 +0000)]
we need -lc when making shared objects or glibc doesn't do its magic
binding for stat()

24 years agomade cvs main up-to-date with samba_tng, with addition of process id to
Luke Leighton [Fri, 21 Jan 2000 02:33:21 +0000 (02:33 +0000)]
made cvs main up-to-date with samba_tng, with addition of process id to
msrpc loop-back interface.

24 years agoMoved Herb's global -> local changes to HEAD.
Jeremy Allison [Thu, 20 Jan 2000 17:16:07 +0000 (17:16 +0000)]
Moved Herb's global -> local changes to HEAD.
Jeremy.

24 years agoAdded Herb's swat fixes.
Jeremy Allison [Tue, 18 Jan 2000 05:11:29 +0000 (05:11 +0000)]
Added Herb's swat fixes.
Jeremy.

24 years agotest for pre- version numbers
Herb Lewis [Mon, 17 Jan 2000 23:16:23 +0000 (23:16 +0000)]
test for pre- version numbers

24 years agoSAMR_R_UNKNOWN_38 is 3 uint16 params (4-byte aligned) followed by status code.
Luke Leighton [Mon, 17 Jan 2000 23:01:23 +0000 (23:01 +0000)]
SAMR_R_UNKNOWN_38 is 3 uint16 params (4-byte aligned) followed by status code.

24 years agofixed some typos in access_table() which, amaziingly enough, make no
Andrew Tridgell [Sun, 16 Jan 2000 13:17:05 +0000 (13:17 +0000)]
fixed some typos in access_table() which, amaziingly enough, make no
difference to the result.

24 years agomade access_table() a pure logic function - makes it simpler to apply
Andrew Tridgell [Sun, 16 Jan 2000 12:53:12 +0000 (12:53 +0000)]
made access_table() a pure logic function - makes it simpler to apply
maths to

24 years agorenamed DENY to DENY1
Andrew Tridgell [Sun, 16 Jan 2000 12:28:43 +0000 (12:28 +0000)]
renamed DENY to DENY1
added DENY2 test that checks all 648 deny combinations for the case
of two opens on the same connection

24 years agouse GET_DENY_MODE() macro
Andrew Tridgell [Sun, 16 Jan 2000 12:27:20 +0000 (12:27 +0000)]
use GET_DENY_MODE() macro

24 years agoas obelix would say "these romans are crazy"
Andrew Tridgell [Sun, 16 Jan 2000 12:26:42 +0000 (12:26 +0000)]
as obelix would say "these romans are crazy"

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

24 years agouse GET_DENY_MODE() macro instead of the bit shift
Andrew Tridgell [Sun, 16 Jan 2000 12:24:01 +0000 (12:24 +0000)]
use GET_DENY_MODE() macro instead of the bit shift

24 years agoproto update
Andrew Tridgell [Sun, 16 Jan 2000 11:24:07 +0000 (11:24 +0000)]
proto update

24 years agoa consequence of the access_table() fixes is that we can't treat
Andrew Tridgell [Sun, 16 Jan 2000 11:22:39 +0000 (11:22 +0000)]
a consequence of the access_table() fixes is that we can't treat
DENY_DOS and DENY_FCB as the same thing anymore (the difference
matters for *.exe files)

24 years agorewrote the access_table() code to get it right for *.exe, *.dll,
Andrew Tridgell [Sun, 16 Jan 2000 11:21:33 +0000 (11:21 +0000)]
rewrote the access_table() code to get it right for *.exe, *.dll,
*.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.

24 years agouse string_set() instead of string_init()
Andrew Tridgell [Sun, 16 Jan 2000 11:18:04 +0000 (11:18 +0000)]
use string_set() instead of string_init()

bug pointed out by Richard

24 years agoadded code to allow traversal of the byte range lock database
Andrew Tridgell [Sun, 16 Jan 2000 11:14:44 +0000 (11:14 +0000)]
added code to allow traversal of the byte range lock database
this is used with "smbstatus -B" to dump the lock list

24 years agofixed a formatting error
Andrew Tridgell [Sun, 16 Jan 2000 11:09:32 +0000 (11:09 +0000)]
fixed a formatting error

24 years agomake string_init() static
Andrew Tridgell [Sun, 16 Jan 2000 11:07:11 +0000 (11:07 +0000)]
make string_init() static
use string_set() instead, to avoid the bug Richard discovered

24 years agomake a br_off a SMB_BIG_UINT
Andrew Tridgell [Sun, 16 Jan 2000 11:06:00 +0000 (11:06 +0000)]
make a br_off a SMB_BIG_UINT

24 years agouseable_space does not include the alignment offset calculations.
Jeremy Allison [Fri, 14 Jan 2000 23:50:38 +0000 (23:50 +0000)]
useable_space does not include the alignment offset calculations.
Bugfix from Marc_Jacobsen@hp.com.
Jeremy.

24 years agoHP changes for registry querying.
Jeremy Allison [Fri, 14 Jan 2000 21:16:59 +0000 (21:16 +0000)]
HP changes for registry querying.
Jeremy.

24 years agoAdded HP change.
Jeremy Allison [Fri, 14 Jan 2000 19:34:57 +0000 (19:34 +0000)]
Added HP change.
Jeremy.

24 years agocasts and defines to make solaris happy
Andrew Tridgell [Fri, 14 Jan 2000 08:33:20 +0000 (08:33 +0000)]
casts and defines to make solaris happy

24 years agodamn, Solaris already has a "enum lock_type"
Andrew Tridgell [Fri, 14 Jan 2000 08:01:44 +0000 (08:01 +0000)]
damn, Solaris already has a "enum lock_type"

changed it to "enum brl_type"

24 years agowe now pass all byte range locking tests
Andrew Tridgell [Fri, 14 Jan 2000 04:32:57 +0000 (04:32 +0000)]
we now pass all byte range locking tests

the last piece was to use a smb timeout slightly larger than the
locking timeout in bloking locks to prevent a race

24 years agoUpdated docs for "inherit permissions" fix.
Jeremy Allison [Fri, 14 Jan 2000 01:49:56 +0000 (01:49 +0000)]
Updated docs for "inherit permissions" fix.
Jeremy.

24 years agoAdded "inherit permissions" patch.
Jeremy Allison [Fri, 14 Jan 2000 01:41:04 +0000 (01:41 +0000)]
Added "inherit permissions" patch.
Fixed locking bug found by Andrew.
Jeremy.

24 years agosome more work on the byte range locking
Andrew Tridgell [Fri, 14 Jan 2000 00:50:48 +0000 (00:50 +0000)]
some more work on the byte range locking

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.

24 years agogreatly expanded the lock4 locking test. we now pass all but one test
Andrew Tridgell [Thu, 13 Jan 2000 12:11:30 +0000 (12:11 +0000)]
greatly expanded the lock4 locking test. we now pass all but one test
- that should be fixed soon.

24 years agochanges to reflect the new syntax of the locking calls.
Andrew Tridgell [Thu, 13 Jan 2000 12:10:48 +0000 (12:10 +0000)]
changes to reflect the new syntax of the locking calls.

24 years agothe bulk of the new byte range locking coode
Andrew Tridgell [Thu, 13 Jan 2000 12:09:36 +0000 (12:09 +0000)]
the bulk of the new byte range locking coode

it doesn't map to posix locks yet, that will come later.

24 years agothe lock routines now take a enumerated type for read/write locks, and
Andrew Tridgell [Thu, 13 Jan 2000 12:08:53 +0000 (12:08 +0000)]
the lock routines now take a enumerated type for read/write locks, and
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.

24 years agoadded Enosuchshare and a lock_type enum
Andrew Tridgell [Thu, 13 Jan 2000 12:06:39 +0000 (12:06 +0000)]
added Enosuchshare and a lock_type enum

24 years agonew prototypes
Andrew Tridgell [Thu, 13 Jan 2000 12:05:58 +0000 (12:05 +0000)]
new prototypes

24 years agodefined br_off as a type for byte range offsets. For now I've set it
Andrew Tridgell [Thu, 13 Jan 2000 12:05:40 +0000 (12:05 +0000)]
defined br_off as a type for byte range offsets. For now I've set it
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)

24 years agoadded locking/brlock.c, a byte range locking system
Andrew Tridgell [Thu, 13 Jan 2000 12:04:31 +0000 (12:04 +0000)]
added locking/brlock.c, a byte range locking system

24 years agoAdded missing #ifdef for WITH_UTMP.
Jeremy Allison [Thu, 13 Jan 2000 00:42:04 +0000 (00:42 +0000)]
Added missing #ifdef for WITH_UTMP.
Jeremy.

24 years agoAdded utmp fix from David Lee <T.D.Lee@durham.ac.uk>.
Jeremy Allison [Wed, 12 Jan 2000 03:09:17 +0000 (03:09 +0000)]
Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.
Jeremy.

24 years agoUse slprintf not snprintf.
Jeremy Allison [Wed, 12 Jan 2000 02:52:42 +0000 (02:52 +0000)]
Use slprintf not snprintf.
Jeremy.

24 years agoFix problems with broken libc fvct returns.
Jeremy Allison [Wed, 12 Jan 2000 02:52:02 +0000 (02:52 +0000)]
Fix problems with broken libc fvct returns.
Jeremy.

24 years agoFixed pointer arithmetic found by IRIX compiler.
Jeremy Allison [Tue, 11 Jan 2000 20:12:46 +0000 (20:12 +0000)]
Fixed pointer arithmetic found by IRIX compiler.
Jeremy.

24 years agoFixed bug in unix_mask_match() that caused veto files not to work.
Jeremy Allison [Tue, 11 Jan 2000 02:18:46 +0000 (02:18 +0000)]
Fixed bug in unix_mask_match() that caused veto files not to work.
Jeremy.

24 years agomodified smbd/msrpc credential transfer system. user session key
Luke Leighton [Tue, 11 Jan 2000 02:00:31 +0000 (02:00 +0000)]
modified smbd/msrpc credential transfer system.  user session key
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?

24 years agoI'm currently designing a new locking system (using a tdb database!)
Andrew Tridgell [Mon, 10 Jan 2000 14:41:20 +0000 (14:41 +0000)]
I'm currently designing a new locking system (using a tdb database!)
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

24 years agodon't treat a packet as a oplock break unless it is a request, not a
Andrew Tridgell [Mon, 10 Jan 2000 13:40:27 +0000 (13:40 +0000)]
don't treat a packet as a oplock break unless it is a request, not a
reply!

24 years agoextent smbtorture to test with both an exe file and a dat file
Andrew Tridgell [Sat, 8 Jan 2000 11:37:45 +0000 (11:37 +0000)]
extent smbtorture to test with both an exe file and a dat file

24 years agofix a error in access_table revealed by the new deny test in smbtorture. We now exact...
Andrew Tridgell [Sat, 8 Jan 2000 11:32:00 +0000 (11:32 +0000)]
fix a error in access_table revealed by the new deny test in smbtorture. We now exactly match NT for normal files. We still don't match for *.exe files though

24 years agocli_open() wasn't handling DENY_FCB or O_WRONLY correctly.
Andrew Tridgell [Sat, 8 Jan 2000 10:15:53 +0000 (10:15 +0000)]
cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.
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

24 years agoadded a DENY test that tests deny mode handling. It produces a matrix
Andrew Tridgell [Sat, 8 Jan 2000 09:49:52 +0000 (09:49 +0000)]
added a DENY test that tests deny mode handling. It produces a matrix
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 :)

24 years agoimproved the error checking
Andrew Tridgell [Sat, 8 Jan 2000 08:16:02 +0000 (08:16 +0000)]
improved the error checking

24 years agoFix minor typos in the yodl for smb.conf.5 and fix minor English problems :-)
Richard Sharpe [Sat, 8 Jan 2000 05:53:40 +0000 (05:53 +0000)]
Fix minor typos in the yodl for smb.conf.5 and fix minor English problems :-)

24 years agosmbd/mangle.c
Jeremy Allison [Sat, 8 Jan 2000 02:16:15 +0000 (02:16 +0000)]
smbd/mangle.c
smbd/negprot.c: Tidyup of static initializers.
smbd/server.c: Fix -l option.
Jeremy.

24 years agoFixed deny mode bug :
Jeremy Allison [Sat, 8 Jan 2000 01:23:13 +0000 (01:23 +0000)]
Fixed deny mode bug :
: 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.

24 years agofixed a comment
Andrew Tridgell [Fri, 7 Jan 2000 12:40:34 +0000 (12:40 +0000)]
fixed a comment

24 years agothe -i options are gone from nmbd and smbd - use the smb.conf
Andrew Tridgell [Fri, 7 Jan 2000 08:49:46 +0000 (08:49 +0000)]
the -i options are gone from nmbd and smbd - use the smb.conf
parameter "netbios scope" instead

-i is still available in the command line utils, as these may be used
to contact another scope

24 years agonetbios scope is a DOS_STRING
Andrew Tridgell [Fri, 7 Jan 2000 08:48:04 +0000 (08:48 +0000)]
netbios scope is a DOS_STRING