Tim Potter [Wed, 9 Feb 2000 23:47:02 +0000 (23:47 +0000)]
file ntdom.c was initially added on branch SAMBA_TNG.
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.
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.
Jeremy Allison [Wed, 9 Feb 2000 14:45:22 +0000 (14:45 +0000)]
Defensive programming for cli_error().
Jeremy.
Andrew Tridgell [Wed, 9 Feb 2000 14:17:12 +0000 (14:17 +0000)]
update masktest for new make_nmb_name() syntax
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
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.
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()
Jean-François Micouleau [Mon, 7 Feb 2000 16:28:41 +0000 (16:28 +0000)]
make proto ...
and the Makefile.in file
J.F.
Jean-François Micouleau [Mon, 7 Feb 2000 16:27:03 +0000 (16:27 +0000)]
spoolss include definitions
J.F.
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.
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.
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.
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.
Tim Potter [Mon, 7 Feb 2000 00:41:58 +0000 (00:41 +0000)]
Fix some more compile warnings.
Tim Potter [Mon, 7 Feb 2000 00:24:04 +0000 (00:24 +0000)]
Fixed compile warning in locking.c:traverse_fn()
Jean-François Micouleau [Fri, 4 Feb 2000 15:19:28 +0000 (15:19 +0000)]
After 3AM, it's getting hard for Luke :-)
Tim Potter [Fri, 4 Feb 2000 05:18:06 +0000 (05:18 +0000)]
Fix some compile warnings.
Tim Potter [Fri, 4 Feb 2000 05:08:16 +0000 (05:08 +0000)]
Hopefully these changes will actually stick.
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.
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)
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...
Tim Potter [Thu, 3 Feb 2000 05:18:26 +0000 (05:18 +0000)]
make proto
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.
Tim Potter [Thu, 3 Feb 2000 05:11:26 +0000 (05:11 +0000)]
Added 'vfs object' and 'vfs options' smb.conf parameters.
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.
Tim Potter [Thu, 3 Feb 2000 05:07:06 +0000 (05:07 +0000)]
Add -rdynamic to LDFLAGS if libdl found.
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.
Tim Potter [Thu, 3 Feb 2000 04:49:11 +0000 (04:49 +0000)]
Added .dummy file.
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.
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. )-:
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.
Tim Potter [Tue, 1 Feb 2000 03:44:33 +0000 (03:44 +0000)]
system_name not server_name
Tim Potter [Mon, 31 Jan 2000 02:44:05 +0000 (02:44 +0000)]
Pass arguments to ./configure
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.
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.
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.
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.
Jeremy Allison [Thu, 27 Jan 2000 01:09:21 +0000 (01:09 +0000)]
Fixed code page conversions of messages outgoing/incoming.
Jeremy.
Jeremy Allison [Wed, 26 Jan 2000 21:25:35 +0000 (21:25 +0000)]
Added hash-based stat cache code from Ying Chen.
Jeremy.
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.
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.
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.
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()
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.
Jeremy Allison [Thu, 20 Jan 2000 17:16:07 +0000 (17:16 +0000)]
Moved Herb's global -> local changes to HEAD.
Jeremy.
Jeremy Allison [Tue, 18 Jan 2000 05:11:29 +0000 (05:11 +0000)]
Added Herb's swat fixes.
Jeremy.
Herb Lewis [Mon, 17 Jan 2000 23:16:23 +0000 (23:16 +0000)]
test for pre- version numbers
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.
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.
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
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
Andrew Tridgell [Sun, 16 Jan 2000 12:27:20 +0000 (12:27 +0000)]
use GET_DENY_MODE() macro
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
Andrew Tridgell [Sun, 16 Jan 2000 12:24:01 +0000 (12:24 +0000)]
use GET_DENY_MODE() macro instead of the bit shift
Andrew Tridgell [Sun, 16 Jan 2000 11:24:07 +0000 (11:24 +0000)]
proto update
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)
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.
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
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
Andrew Tridgell [Sun, 16 Jan 2000 11:09:32 +0000 (11:09 +0000)]
fixed a formatting error
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
Andrew Tridgell [Sun, 16 Jan 2000 11:06:00 +0000 (11:06 +0000)]
make a br_off a SMB_BIG_UINT
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.
Jeremy Allison [Fri, 14 Jan 2000 21:16:59 +0000 (21:16 +0000)]
HP changes for registry querying.
Jeremy.
Jeremy Allison [Fri, 14 Jan 2000 19:34:57 +0000 (19:34 +0000)]
Added HP change.
Jeremy.
Andrew Tridgell [Fri, 14 Jan 2000 08:33:20 +0000 (08:33 +0000)]
casts and defines to make solaris happy
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"
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
Jeremy Allison [Fri, 14 Jan 2000 01:49:56 +0000 (01:49 +0000)]
Updated docs for "inherit permissions" fix.
Jeremy.
Jeremy Allison [Fri, 14 Jan 2000 01:41:04 +0000 (01:41 +0000)]
Added "inherit permissions" patch.
Fixed locking bug found by Andrew.
Jeremy.
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.
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.
Andrew Tridgell [Thu, 13 Jan 2000 12:10:48 +0000 (12:10 +0000)]
changes to reflect the new syntax of the locking calls.
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.
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.
Andrew Tridgell [Thu, 13 Jan 2000 12:06:39 +0000 (12:06 +0000)]
added Enosuchshare and a lock_type enum
Andrew Tridgell [Thu, 13 Jan 2000 12:05:58 +0000 (12:05 +0000)]
new prototypes
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)
Andrew Tridgell [Thu, 13 Jan 2000 12:04:31 +0000 (12:04 +0000)]
added locking/brlock.c, a byte range locking system
Jeremy Allison [Thu, 13 Jan 2000 00:42:04 +0000 (00:42 +0000)]
Added missing #ifdef for WITH_UTMP.
Jeremy.
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.
Jeremy Allison [Wed, 12 Jan 2000 02:52:42 +0000 (02:52 +0000)]
Use slprintf not snprintf.
Jeremy.
Jeremy Allison [Wed, 12 Jan 2000 02:52:02 +0000 (02:52 +0000)]
Fix problems with broken libc fvct returns.
Jeremy.
Jeremy Allison [Tue, 11 Jan 2000 20:12:46 +0000 (20:12 +0000)]
Fixed pointer arithmetic found by IRIX compiler.
Jeremy.
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.
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?
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
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!
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
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
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
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 :)
Andrew Tridgell [Sat, 8 Jan 2000 08:16:02 +0000 (08:16 +0000)]
improved the error checking
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 :-)
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.
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.
Andrew Tridgell [Fri, 7 Jan 2000 12:40:34 +0000 (12:40 +0000)]
fixed a comment
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
Andrew Tridgell [Fri, 7 Jan 2000 08:48:04 +0000 (08:48 +0000)]
netbios scope is a DOS_STRING