samba.git
24 years agoclient/client.c:
Jeremy Allison [Fri, 25 Feb 2000 22:25:25 +0000 (22:25 +0000)]
client/client.c:
libsmb/clientgen.c: Fixes for Win2k smbclient browsing.
Other fixes implement smbpasswd -x user to delete users. Also allows swat
to do the same.
Jeremy.
(This used to be commit 9f6ad046761adecafba59040baa3abc9f0959e65)

24 years agomade dynamic the Printer struct. No more limits :-)
Jean-François Micouleau [Thu, 24 Feb 2000 23:01:24 +0000 (23:01 +0000)]
made dynamic the Printer struct. No more limits :-)

J.F.
(This used to be commit b59233b3b61b17e85f5d5b44cc6f2ced9d27b497)

24 years agoconverted a couple of bzero() to memset()
Jean-François Micouleau [Thu, 24 Feb 2000 16:27:06 +0000 (16:27 +0000)]
converted a couple of bzero() to memset()

rewrote the printer notify code, so now it's compatible with SP5 and fully
dynamic. No more limits on printers and job lists.

removed the make_xxx() functions as they are not used and broken

fixed a bug in the open handle function.

J.F.
(This used to be commit aa9054d14bc940f251639ab897d9f356814f5fc0)

24 years agoMultiple-dot scope handling fix from Greg Bowering gb@pobox.com
Jeremy Allison [Wed, 23 Feb 2000 22:29:27 +0000 (22:29 +0000)]
Multiple-dot scope handling fix from Greg Bowering gb@pobox.com
Jeremy.
(This used to be commit 693a582c23599bbdd45adb30401b1162e44fd274)

24 years agolib/system.c: Fixed gcc warnings.
Jeremy Allison [Wed, 23 Feb 2000 02:02:33 +0000 (02:02 +0000)]
lib/system.c: Fixed gcc warnings.
nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0.
Others - preparing for multiple pdu write code.
Jeremy.
(This used to be commit 9f879ec396230deba34fbe5e82d8a65f92137c54)

24 years agorichard got the short request for GETDC right (hooray!) win9x _and_ nt
Luke Leighton [Tue, 22 Feb 2000 21:00:01 +0000 (21:00 +0000)]
richard got the short request for GETDC right (hooray!)  win9x _and_ nt
now work.
(This used to be commit 27ef1789267c7af70071ac9b1d216b4dd745578a)

24 years agoFix for crash bug from Paul Tyler <pct@ansto.gov.au>.
Jeremy Allison [Mon, 21 Feb 2000 18:47:21 +0000 (18:47 +0000)]
Fix for crash bug from Paul Tyler <pct@ansto.gov.au>.
Jeremy.
(This used to be commit 89aa4d8ca9cc9e8e6dd4566076c0cace8b82d838)

24 years agomore rewrite ...
Jean-François Micouleau [Mon, 21 Feb 2000 01:58:13 +0000 (01:58 +0000)]
more rewrite ...

comitting before starting on new functions.

J.F.
(This used to be commit f9c20801114f72b587a6e8c3177cbab13dbdcc28)

24 years agoFix for reporting file system attributes correctly.
Jeremy Allison [Fri, 18 Feb 2000 03:54:26 +0000 (03:54 +0000)]
Fix for reporting file system attributes correctly.
Jeremy.
(This used to be commit 801ed2389b97f921aa855513696d304c542fda04)

24 years agoFixes for Eastern Europe code page.
Jeremy Allison [Fri, 18 Feb 2000 03:11:22 +0000 (03:11 +0000)]
Fixes for Eastern Europe code page.
Jeremy.
(This used to be commit 0ec82d661a27a02322e5c8da20a18f33bfb24a3e)

24 years agoDon't assume that the (files_struct *) passed to fd_attempt_close()
Tim Potter [Thu, 17 Feb 2000 23:22:26 +0000 (23:22 +0000)]
Don't assume that the (files_struct *) passed to fd_attempt_close()
will be non-NULL.
(This used to be commit 02f845e54351ec57ee873a8ed887285552c6ecab)

24 years agoUpdated docs for tdb_traverse.
Tim Potter [Thu, 17 Feb 2000 00:16:40 +0000 (00:16 +0000)]
Updated docs for tdb_traverse.
(This used to be commit 8cbc7dfa031cb66d1f011705b6bd76d56c68cae5)

24 years agoMore checks for passing NULL tdb contexts to tdb functions.
Tim Potter [Wed, 16 Feb 2000 22:57:57 +0000 (22:57 +0000)]
More checks for passing NULL tdb contexts to tdb functions.
(This used to be commit 7faa70d254549e60520de1ed1112d41fe9a4d77c)

24 years agoAdded support for SO_REUSEPORT for systems that have it.
Jeremy Allison [Wed, 16 Feb 2000 22:48:19 +0000 (22:48 +0000)]
Added support for SO_REUSEPORT for systems that have it.
Jeremy.
(This used to be commit 377515cf9624720362c0b76969b9381d9972a13f)

24 years agoMake proto.
Jeremy Allison [Wed, 16 Feb 2000 17:52:25 +0000 (17:52 +0000)]
Make proto.
(This used to be commit a12ebc50be4384750b10bf0c391adc967cb096ff)

24 years agotdb_traverse() now takes three arguments.
Tim Potter [Wed, 16 Feb 2000 04:56:11 +0000 (04:56 +0000)]
tdb_traverse() now takes three arguments.
(This used to be commit 2d3e2f8877fb8eb21b4ccf4d7a56f1c625c71780)

24 years agoAdded "source environment" parameter from Nicolas Williams <Nicolas.Williams@wdr...
Jeremy Allison [Wed, 16 Feb 2000 02:35:53 +0000 (02:35 +0000)]
Added "source environment" parameter from Nicolas Williams <Nicolas.Williams@wdr.com>.
Jeremy.
(This used to be commit f29847cbeeb0109f1fa61e9851e8cb0689b5228d)

24 years agoAdded replacement functions sys_popen and sys_pclose. These are based
Jeremy Allison [Tue, 15 Feb 2000 19:36:47 +0000 (19:36 +0000)]
Added replacement functions sys_popen and sys_pclose. These are based
on the glibc source code and are safer than the traditional popen as
they don't use a shell to exec the requested command. Now we have
these functions they can be tightened up (environment etc.) as required
to make a safe popen. It should now be safe to add the environement
variable loading code to loadparm.c
Jeremy.
(This used to be commit b52e92b09d4ca3b66e534f520468dee27065d048)

24 years agofix the reply of rpc_alter_context
Jean-François Micouleau [Tue, 15 Feb 2000 18:07:45 +0000 (18:07 +0000)]
fix the reply of rpc_alter_context
OpenPrinterEx is now decoding correctly the query
most of the EnumXXX use the new_buffer struct.
check the (un)marshalling return code.

conclusion: still a long way to go. all the client code has to be
rewritten, and I still wonder how to implement correctly the notify stuff.
(This used to be commit 3d6d3863751787b08d40268c83221add1487a5c9)

24 years agoReturn "Invalid tdb context" instead of crashing when tdb_error called
Tim Potter [Tue, 15 Feb 2000 06:13:38 +0000 (06:13 +0000)]
Return "Invalid tdb context" instead of crashing when tdb_error called
with NULL tdb context.
(This used to be commit ba9f24c0964054f22cd8f0de32cfeacb88b4800c)

24 years agoNot enough args to DEBUG statement.
Tim Potter [Tue, 15 Feb 2000 05:06:53 +0000 (05:06 +0000)]
Not enough args to DEBUG statement.
(This used to be commit 156f438bce607236b2d91c28f3dbe8559e048738)

24 years agoOoops. Fixed stupid typo with missing ! in cli error code.
Jeremy Allison [Mon, 14 Feb 2000 21:52:35 +0000 (21:52 +0000)]
Ooops. Fixed stupid typo with missing ! in cli error code.
Jeremy.
(This used to be commit 0babc4baea62aa40e8698ab88b3a95d514c001b6)

24 years agodamn, masktest now needs the mangle code from smbd
Andrew Tridgell [Thu, 10 Feb 2000 13:45:52 +0000 (13:45 +0000)]
damn, masktest now needs the mangle code from smbd

not very clean
(This used to be commit 6c09c0fd9e00036f6da9d29801e885ed3b559c42)

24 years agothe beginnings of a fnmatch() based wildcard matching routine
Andrew Tridgell [Thu, 10 Feb 2000 13:43:59 +0000 (13:43 +0000)]
the beginnings of a fnmatch() based wildcard matching routine
(This used to be commit ef256de9d9a204cf91fe8b636d07400cd0648d1e)

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.
(This used to be commit 1f7964f29b9bcc92517e10c4f47c56fb2de5c9ab)

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.
(This used to be commit c8ca70f99ee2eae5e29ddf0dd4bc231fbcd188f2)

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.
(This used to be commit 34b0e2acb050e384c132ddfb50ec84157fb430c6)

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.
(This used to be commit 94ed74d5b09d6f28b47b2855c4e4a1dc5c2108d3)

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
(This used to be commit 3609e835d4f938190f43b958403978c892b4bc9b)

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
(This used to be commit 3f77690dade57f4ae9da7196b0aa7a3a43afcc46)

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.
(This used to be commit ebcdb4afee04cc3b94e60b1de86c2b534d4e233e)

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()
(This used to be commit 2f544a807714024c0fe2ddc26e11c9ddcb47e81f)

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.
(This used to be commit aa22586aac02c28aaa5f96e1a03a83fc138c840e)

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.
(This used to be commit 853a1a3027dde7608027dc78f6e15789d5fc9152)

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.
(This used to be commit 81e375bbbe0fb022a44a2aaaa3729a9518b7a854)

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.
(This used to be commit b81dc7b7f832cae2e66076398a134fbb6c1f78ca)

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.
(This used to be commit bd9d4cdde9193c120c6f4e8cf72f87cd67a9387e)

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.
(This used to be commit 773d6e504b1ac97f0d8136002ace2c0c0771a163)

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.
(This used to be commit 507624dbc0a1a9e1df72a6b8de45038e86a9e5b1)

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()
(This used to be commit eefc8972217e5a700b90f13ab040a0919f184d23)

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 :-)
(This used to be commit 61c970b10adc37412722a6ee54b166d41ed0a071)

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

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.
(This used to be commit a2782097db258a164bf43d814e8832a27d0eb3f1)

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.
(This used to be commit 49d7f0afbc1c5425d53019e234d54ddf205c8e9a)

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)
(This used to be commit 176c405d2702a4245561ff56c8eac3c754a0dea3)

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...
(This used to be commit 8b26be1e82d329c9ea8a1d6a71e5e9f440eb93ac)

24 years agomake proto
Tim Potter [Thu, 3 Feb 2000 05:18:26 +0000 (05:18 +0000)]
make proto
(This used to be commit 8855d7346d0c15ecada2fc092e360b58ccf161fe)

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.
(This used to be commit 3aad500c0fb61232ed3431ff4b743b5d18ec852f)

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.
(This used to be commit f872518972e7942e31b5ac5150d7ed8b0fbcf641)

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.
(This used to be commit b55f63da7e6a3c306ce668c77ed63a41d33240db)

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.
(This used to be commit 4c14a343d10bbddd69a1dc5abc9d4f64cf75dacc)

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.
(This used to be commit d91bfec537cf9959b47ad1cd470e18a6ddcbda6f)

24 years agoAdded .dummy file.
Tim Potter [Thu, 3 Feb 2000 04:49:11 +0000 (04:49 +0000)]
Added .dummy file.
(This used to be commit 71fc4dc7917d5c4782f61640c5b7681732742766)

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.
(This used to be commit 13a2cf80f65156e725a5716e62a4c44e70f5340f)

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.  )-:
(This used to be commit bb07eceddb0552ff17ba9db94ae81f58226be4b5)

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.
(This used to be commit f25bffada9b65236adbece7284a699c37af74f6d)

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
(This used to be commit e9da53012011b30cab80074fdc55e624ede97979)

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

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.
(This used to be commit d3557b7f728e262d880bd7f7bbe20b853dbf165a)

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.
(This used to be commit 94c075faee88538e48d1898f1694500b8a5d4c8b)

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.
(This used to be commit 171bef4d95390c1a74591fb06327cc993360a764)

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.
(This used to be commit 91f4d0675333d7c5d7bb5ff077faaf83e1fd9bfe)

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.
(This used to be commit 84b045cbc8b337f1e23f200af433ac9d265a22d4)

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.
(This used to be commit b62a1bd6328f5894ae1a2fef3ef6fc66304ade52)

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.
(This used to be commit e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c)

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.
(This used to be commit fc0219c7cc4b83e6db17d5b3be70d74fd7971089)

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.
(This used to be commit 82c99dc8d8bc79e88f0db651f04fc23508195a51)

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()
(This used to be commit b52e60d5685b6ce9e581b5598b2725a4bf88ab06)

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.
(This used to be commit adbf97c0a93149e17496b002ecc8ecdb3f360ed5)

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.
(This used to be commit bdb2ff6a38f55a66fa7e142f30442899193805ee)

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.
(This used to be commit fa3d91de8957c932f02205f9257dd3e47892a43d)

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
(This used to be commit c1f25dbf996de50f486a165b314119e9f4ae0419)

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.
(This used to be commit 55035b8984c135ddd2c4e3be18caf8833975841d)

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.
(This used to be commit 9e28b7220bc293e386fec30c2d2e7e401b61b1f7)

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
(This used to be commit 0ad62f128d1c26b8f7e71bc045c6f4a584f8d374)

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
(This used to be commit 01d4c4784dd26bdfc9883907b3170e8b0ea0cd6f)

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
(This used to be commit d9c3e0e61f315ad4d9c3ea6bb6acc8500befe6b4)

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
(This used to be commit 31a5857ce4f03eb53ff8ea96c5f1ce335941336d)

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
(This used to be commit d72c98a931ff05a7f8b74b98cd7ebd025a87d249)

24 years agoproto update
Andrew Tridgell [Sun, 16 Jan 2000 11:24:07 +0000 (11:24 +0000)]
proto update
(This used to be commit ab492d46942e9c43e6b61a04f9db75d9fc3f40d6)

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)
(This used to be commit 8f3ff09283db87083a81a943909ae047cdd9e48b)

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.
(This used to be commit 5b9be3feca26f1f20fe3f32ba90769cc78f9bb6b)

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
(This used to be commit 070f49397ff24e4d6ba7c2c1cfaef2dfa0944bd0)

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
(This used to be commit 5f022629146701e6d543f77007dc944e4277ab0c)

24 years agofixed a formatting error
Andrew Tridgell [Sun, 16 Jan 2000 11:09:32 +0000 (11:09 +0000)]
fixed a formatting error
(This used to be commit 10d9d81e8b7eba588526a5d479be74ce8f86fc55)

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
(This used to be commit fdcbf6b52d8373bf8f35718a9649788415c23342)

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
(This used to be commit 0751a0ea4cdb7f5db0aa6f359dd3e4f744fc0689)

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.
(This used to be commit eb06c199163232453e2d9ca50d00765c90f8f3e2)

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.
(This used to be commit fd8582cc0a751618f4699f435d561f5de54bf7f4)

24 years agoAdded HP change.
Jeremy Allison [Fri, 14 Jan 2000 19:34:57 +0000 (19:34 +0000)]
Added HP change.
Jeremy.
(This used to be commit 4914d2f161b6a82789f3a9decccb636fb21264c5)

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
(This used to be commit 77cf152c02b445f4b6e9de393936dd6e54e6f442)

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"
(This used to be commit 6b9ee7662c7afa70f6b20889e6b0ae1dcd677f9f)

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
(This used to be commit 1b54cb4a33a65e62c2e3189b78ef073869a60c75)

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.
(This used to be commit 4fbc7358d21f541b7a6e27f768a88007bf390da5)

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.
(This used to be commit 38dffd360dc2e44bfc9e751f017e24f81ff0f2fa)

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.
(This used to be commit f8bebf91abcaa5bda3ec8701f9242f220da8943a)

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.
(This used to be commit 23bb936e1fdeab2ad697ed946c945ef5ce87357d)

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.
(This used to be commit 44117df2c908d473b3e1a1020b22af6d584809ef)

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.
(This used to be commit 7f2a493095887cb0aae915ac36b9cded71d3a7a7)

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.
(This used to be commit 1bbc1ce18b8ccb92b5a78ee648539a591a452118)