samba.git
25 years agoThis commit was manufactured by cvs2svn to create tag samba-2.0.0
cvs2svn Import User [Thu, 14 Jan 1999 22:12:49 +0000 (22:12 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-2-0-0'.

25 years agopreparing for release of 2.0.0
Samba Release Account [Thu, 14 Jan 1999 22:12:48 +0000 (22:12 +0000)]
preparing for release of 2.0.0

25 years agoChanged version to 2.0.0 for official release.
Jeremy Allison [Thu, 14 Jan 1999 20:31:03 +0000 (20:31 +0000)]
Changed version to 2.0.0 for official release.
Jeremy.

25 years agoChanged 'large lock' warning message to debug level 1, not zero, to
Jeremy Allison [Thu, 14 Jan 1999 19:50:13 +0000 (19:50 +0000)]
Changed 'large lock' warning message to debug level 1, not zero, to
allow people to turn it off if it really bugs them and in case we
get it a lot.
Jeremy.

25 years agoAdding Volkers SuSE 6.0 pacakging files for 2.0.0.
Jeremy Allison [Thu, 14 Jan 1999 19:44:21 +0000 (19:44 +0000)]
Adding Volkers SuSE 6.0 pacakging files for 2.0.0.
Jermey.

25 years agoEnsuring docs are up-to-date for 2.0.0.
Jeremy Allison [Thu, 14 Jan 1999 19:42:11 +0000 (19:42 +0000)]
Ensuring docs are up-to-date for 2.0.0.
Jeremy.

25 years agoPreparing for official 2.0.0 release.
Jeremy Allison [Thu, 14 Jan 1999 19:15:17 +0000 (19:15 +0000)]
Preparing for official 2.0.0 release.
Jeremy.

25 years agoFixed problem where with POSIX signal handling (as used in Solaris and
Jeremy Allison [Thu, 14 Jan 1999 18:29:55 +0000 (18:29 +0000)]
Fixed problem where with POSIX signal handling (as used in Solaris and
IRIX) we would infinately loop on a SIGCLD in the password changing code.
Just lucky we didn't get bitten in the generic SIGCLD case (but I fixed
that too).
Jeremy.

25 years agoFixed the *other* typo in the mapping of 64 bit to 32 bit lock ranges :-).
Jeremy Allison [Thu, 14 Jan 1999 17:35:53 +0000 (17:35 +0000)]
Fixed the *other* typo in the mapping of 64 bit to 32 bit lock ranges :-).
Jeremy.

25 years agofixed a missing IVAL in get_lock_offset(). There was no way that this
Andrew Tridgell [Thu, 14 Jan 1999 03:07:59 +0000 (03:07 +0000)]
fixed a missing IVAL in get_lock_offset(). There was no way that this
code could have worked, so I'm a little suspicious of the testing that
has been done on it!

25 years agoFixed typo in uname command for HPUX that was preventing large file support.
Jeremy Allison [Wed, 13 Jan 1999 19:39:09 +0000 (19:39 +0000)]
Fixed typo in uname command for HPUX that was preventing large file support.
Jeremy.

25 years agoutils/testparm.c: Fixed "passwd program" tests to look for the correct program.
Jeremy Allison [Wed, 13 Jan 1999 18:32:56 +0000 (18:32 +0000)]
utils/testparm.c: Fixed "passwd program" tests to look for the correct program.
smbd/reply.c: Changed "Error" in level 0 debug message about NT bug to "Warning"
              as Samba will continue without it.
Jeremy.

25 years agoconfigure configure.in: Fixed the compile problem with Solaris 2.6/2.7 and
Jeremy Allison [Wed, 13 Jan 1999 04:17:24 +0000 (04:17 +0000)]
configure configure.in: Fixed the compile problem with Solaris 2.6/2.7 and
gcc2.7.x - this condition is now auto detected and uses the correct flags.

smbd/reply.c: Did more mapping for 64-bit lock requests on 32 bit systems.

smbd/nttrans.c:
smbd/oplock.c: Fixed the MS-Office not noticing files are open problem. This
was a *subtle* problem and now needs testing to ensure the fix is correct.

It's past 8pm, I'm tired and I'm going for a pizza.

Jeremy.

25 years agodon't show create printer entries on printers page if you don't have have
Herb Lewis [Tue, 12 Jan 1999 22:04:49 +0000 (22:04 +0000)]
don't show create printer entries on printers page if you don't have have
write access.

25 years agoFixed biffer too small error to have 0xC0000000 OR'ed into it just
Jeremy Allison [Tue, 12 Jan 1999 02:24:40 +0000 (02:24 +0000)]
Fixed biffer too small error to have 0xC0000000 OR'ed into it just
to be the same as NT (seems to work without it but you never know...).
Jeremy.

25 years agoImplemented NT_QUERY_SECURITY_DESCRIPTOR in the same way that NT responds
Jeremy Allison [Tue, 12 Jan 1999 02:16:34 +0000 (02:16 +0000)]
Implemented NT_QUERY_SECURITY_DESCRIPTOR in the same way that NT responds
if you send this query to a FAT volume. Phew - I'm glad I got this one in
under the wire for 2.0.0.....
Jeremy.

25 years agolibsmb/nmblib.c: Fixed bug where odd byte count could cause nmbd to
Jeremy Allison [Mon, 11 Jan 1999 22:24:27 +0000 (22:24 +0000)]
libsmb/nmblib.c: Fixed bug where odd byte count could cause nmbd to
do too many iterations.
nmbd/nmbd.c: Fixed SIGHUP handling to act the same as smbd.
smbd/reply.c: Added code to map 64-bit lock ranges where possible on 32-bit systems.
smbd/server.c: Fixed comment.
Jeremy.

25 years agoFixed tests for platforms that have setreuid but not setresuid (such
Jeremy Allison [Mon, 11 Jan 1999 01:04:30 +0000 (01:04 +0000)]
Fixed tests for platforms that have setreuid but not setresuid (such
as RedHat 5.x).
Jeremy.

25 years agodon't panic on a null params in api_reply(). instead just return an
Andrew Tridgell [Sun, 10 Jan 1999 06:40:47 +0000 (06:40 +0000)]
don't panic on a null params in api_reply(). instead just return an
error (smbtorture sends null params)

25 years agofixed two compiler warnings
Andrew Tridgell [Sun, 10 Jan 1999 02:52:16 +0000 (02:52 +0000)]
fixed two compiler warnings

25 years agofixed (harmless) bug in DEBUG() message
Andrew Tridgell [Sun, 10 Jan 1999 02:51:26 +0000 (02:51 +0000)]
fixed (harmless) bug in DEBUG() message

25 years agoFixed change notify for Visual C++.
Jeremy Allison [Sat, 9 Jan 1999 00:59:00 +0000 (00:59 +0000)]
Fixed change notify for Visual C++.

No-one seemed to have noticed it wasn't working (this worries
me....).

ChangeNotify now scans the directory if necessary and uses the
sum of all timestamps and the number of entries as the 'hash'
to determin if anything changed.

Jeremy.

25 years agojeremy had already added code to handle null paths :)
Andrew Tridgell [Sat, 9 Jan 1999 00:16:57 +0000 (00:16 +0000)]
jeremy had already added code to handle null paths :)

25 years agohandle null path in smbw_path()
Andrew Tridgell [Fri, 8 Jan 1999 23:19:36 +0000 (23:19 +0000)]
handle null path in smbw_path()

25 years agoCheck for a null pointer in smbw_path.
Jeremy Allison [Fri, 8 Jan 1999 20:37:48 +0000 (20:37 +0000)]
Check for a null pointer in smbw_path.
Jeremy.

25 years agoRemoving auto-generated file at the request of the packaging maintainer.
Jeremy Allison [Fri, 8 Jan 1999 20:29:23 +0000 (20:29 +0000)]
Removing auto-generated file at the request of the packaging maintainer.
Jeremy.

25 years agoFixed the 16-bit app directory handle problem (this took *way* longer
Jeremy Allison [Fri, 8 Jan 1999 20:16:54 +0000 (20:16 +0000)]
Fixed the 16-bit app directory handle problem (this took *way* longer
than it should :-).
SMBsearch now gets directory handles that are 8 bit in the range
1-255 and will close the oldest non-expect-close handle if the table gets full.
findfirst gets 16 bit directory handles starting at 256 and above.
Jeremy.

25 years agoAdded contributed HPUX packaging tools. Thank-you <leon@hermes.si>
John Terpstra [Fri, 8 Jan 1999 13:58:03 +0000 (13:58 +0000)]
Added contributed HPUX packaging tools. Thank-you <leon@hermes.si>

25 years agonmbd/nmbd_incomingrequests.c: Split long debug message.
Jeremy Allison [Thu, 7 Jan 1999 23:02:00 +0000 (23:02 +0000)]
nmbd/nmbd_incomingrequests.c: Split long debug message.
utils/smbpasswd.c: Added load_interfaces() to allow name resolution to work correctly
for multihomed smb.confs.
Jeremy.

25 years agoNow we're mallocing our directory handles rather then using a static
Jeremy Allison [Thu, 7 Jan 1999 20:20:22 +0000 (20:20 +0000)]
Now we're mallocing our directory handles rather then using a static
array, leaks are rather more severe :-). This fixes a bug in trans2
findfirst where I forgot to close a directory handle if returning a
'no such file' error. Also fixed a similar case in smbsearch.
Jeremy.

25 years agoRemoved 'counter' from timeout processing. Timeouts now depend on actual
Jeremy Allison [Thu, 7 Jan 1999 19:21:56 +0000 (19:21 +0000)]
Removed 'counter' from timeout processing. Timeouts now depend on actual
time calculations, not by incrementing a counter.
The select timeout is set to the old (lower) value of 10 seconds if there
are blocking locks pending, and to the newer 60 second value if not.
Jeremy.

25 years agoRemember to return after idling the oldest dirptr so we don't idle all
Jeremy Allison [Thu, 7 Jan 1999 02:52:50 +0000 (02:52 +0000)]
Remember to return after idling the oldest dirptr so we don't idle all
of them.
Jeremy.

25 years agoFixed the blocking locks and change notify code that got broken in
Jeremy Allison [Wed, 6 Jan 1999 23:32:13 +0000 (23:32 +0000)]
Fixed the blocking locks and change notify code that got broken in
beta5. The problem was that I had increased the select timeout so much
that the client was sending echo requests as a sort of keepalive.
As smbd only did timeout processing on select timeout then not
much timeout processing was being done :-).
I've fixed this by moving the timeout code to a function and
calling it every time we get an SMBecho request (we must have
been idle at that point).
Jeremy.

25 years agoAdded full pathname lock patch from Andy <thwartedefforts@wonky.org>
Jeremy Allison [Wed, 6 Jan 1999 21:37:58 +0000 (21:37 +0000)]
Added full pathname lock patch from Andy <thwartedefforts@wonky.org>
Jeremy.

25 years agoAllow force user to take %S substitution.
Jeremy Allison [Wed, 6 Jan 1999 19:07:05 +0000 (19:07 +0000)]
Allow force user to take %S substitution.
Jeremy.

25 years agolib/util_sec.c: Fixed order of calls to setresuid/setreuid/seteuid based on autoconf...
Jeremy Allison [Wed, 6 Jan 1999 03:20:35 +0000 (03:20 +0000)]
lib/util_sec.c: Fixed order of calls to setresuid/setreuid/seteuid based on autoconf tests.
tests/trapdoor.c: Fixed problem where setresgid was being called in block of code that was
#ifdefed for setregid.
Jeremy.

25 years agoConverted the code in smbd/dir.c to use bitmaps instead of a static
Jeremy Allison [Wed, 6 Jan 1999 02:18:57 +0000 (02:18 +0000)]
Converted the code in smbd/dir.c to use bitmaps instead of a static
array for directory handles. This tidied up the code a *lot*.
Plus it means I've fixed the bug in PR#10058, which was due to an
NT app that wanted to simultaneously open >256 directory handles.

Jeremy.

25 years agoUpdated compilation options and fixed Digital package-prep script.
John Terpstra [Tue, 5 Jan 1999 14:01:53 +0000 (14:01 +0000)]
Updated compilation options and fixed Digital package-prep script.

25 years agoModified BROKEN_CC rule in .c.o so that it doesn't rely on basename,
Alexandre Oliva [Tue, 5 Jan 1999 09:13:15 +0000 (09:13 +0000)]
Modified BROKEN_CC rule in .c.o so that it doesn't rely on basename,
using sed instead.  Systems that lack `-o' abilities are very likely
to lack basename too.  Also modified the rules .c.po and .c.po32 so
that the .o file is renamed to .po*.o, since a later `mv' will take
care of removing the `.o' suffix

25 years agochange man page suffix to .z instead of .Z
Herb Lewis [Tue, 5 Jan 1999 06:31:30 +0000 (06:31 +0000)]
change man page suffix to .z instead of .Z

25 years agoall other man pages are using pack instead of compress format so I will too
Herb Lewis [Tue, 5 Jan 1999 01:51:59 +0000 (01:51 +0000)]
all other man pages are using pack instead of compress format so I will too

25 years agoAdded autoconf test for FTRUNCATE_NEEDS_ROOT.
Jeremy Allison [Mon, 4 Jan 1999 21:53:51 +0000 (21:53 +0000)]
Added autoconf test for FTRUNCATE_NEEDS_ROOT.
Fixed <rpc/rpc.h> include bug for SCO.
Test for <arpa/inet.h> include for HPUX7.x.
Jeremy.

25 years agoacconfig.h configure configure.in include/config.h.in lib/system.c: Fixed --with...
Jeremy Allison [Mon, 4 Jan 1999 19:21:51 +0000 (19:21 +0000)]
acconfig.h configure configure.in include/config.h.in lib/system.c: Fixed --with-mmap code.
lib/time.c: Changed %T to %H:%M:%S for systems that don't have %T.
locking/locking_slow.c: Re-added FTRUNCATE_NEEDS_ROOT code - now to test for it...
smbd/quotas.c: Fixed IRIX quota compile.
Jeremy.

25 years agoRemoved one reference to Red Hat, changed to PHT TurboLinux.
John Terpstra [Sat, 2 Jan 1999 03:26:22 +0000 (03:26 +0000)]
Removed one reference to Red Hat, changed to PHT TurboLinux.

25 years agoChanged spaces to tabs in BROKEN_CC line (doh!).
Jeremy Allison [Thu, 31 Dec 1998 07:25:58 +0000 (07:25 +0000)]
Changed spaces to tabs in BROKEN_CC line (doh!).
Problem spotted by Tim Rice, who sent in the original patch.
This problem will only bite beta5 users who have a broken CC
that won't use -c -o simultaneously.
Jeremy.

25 years agopreparing for release of 2.0.0beta5
Samba Release Account [Thu, 31 Dec 1998 01:52:00 +0000 (01:52 +0000)]
preparing for release of 2.0.0beta5

25 years agoWHATSNEW.txt: Updated for beta5.
Jeremy Allison [Thu, 31 Dec 1998 01:40:49 +0000 (01:40 +0000)]
WHATSNEW.txt: Updated for beta5.
source/include/local.h: Changed select look timeouts to 60 seconds (120 to
scan smb.conf file).
source/include/version.h: Updated to beta5.
Jeremy.

25 years agoFixed bug in nttrans call where parameter buffer was not being
Jeremy Allison [Wed, 30 Dec 1998 22:34:04 +0000 (22:34 +0000)]
Fixed bug in nttrans call where parameter buffer was not being
zeroed out before use.
Jeremy.

25 years agoclient/client.c: Fixed comment.
Jeremy Allison [Wed, 30 Dec 1998 20:51:43 +0000 (20:51 +0000)]
client/client.c: Fixed comment.
All others - added checks for the compiler understanding volatile and
the system having sig_atomic_t. Changed sighup code to use this.
Jeremy.

25 years agoAdded BROKEN_NIS_INCLUDE fix here also.
Jeremy Allison [Wed, 30 Dec 1998 01:13:15 +0000 (01:13 +0000)]
Added BROKEN_NIS_INCLUDE fix here also.
Jeremy.

25 years agoReplaced damaged skeleton.tar files with working copy, added warning
John Terpstra [Tue, 29 Dec 1998 23:12:52 +0000 (23:12 +0000)]
Replaced damaged skeleton.tar files with working copy, added warning
to anyone who tries to use any package building tool.

25 years agoAdded autoconf detect tests for broken Solaris 2.6 NIS+ include files.
Jeremy Allison [Tue, 29 Dec 1998 23:01:07 +0000 (23:01 +0000)]
Added autoconf detect tests for broken Solaris 2.6 NIS+ include files.
Jeremy.

25 years agoMakefile.in configure configure.in include/config.h.in: Added -c -o fixes from Tim...
Jeremy Allison [Tue, 29 Dec 1998 22:29:17 +0000 (22:29 +0000)]
Makefile.in configure configure.in include/config.h.in: Added -c -o fixes from Tim Rice.
utils/smbpasswd.c web/swat.c: Added set_auth_parameters() call where needed for OSF1_ENC_SEC.
Jeremy.

25 years agoIn reply_lockread.
Jeremy Allison [Tue, 29 Dec 1998 19:24:07 +0000 (19:24 +0000)]
In reply_lockread.
Discovered by Menny Hamburger at Mainsoft. This is a core+
protocol request that predates the read/write lock concept.
Thus instead of asking for a read lock here we need to ask
for a write lock.
Jeremy.

25 years agopassdb/nispass.c: Fixed compile --with-nisplus (I now have access to a Solaris 2...
Jeremy Allison [Tue, 29 Dec 1998 01:33:33 +0000 (01:33 +0000)]
passdb/nispass.c: Fixed compile --with-nisplus (I now have access to a Solaris 2.6 box:-).
passdb/passdb.c: Fixed reading of machine sid so that we correctly change the (decimal)21
                 to hex 0x21 to be in line with NT.
Jeremy.

25 years agolib/signal.c: Added CatchChildLeaveStatus() call needed in smbd/open.c and smbd/chgpa...
Jeremy Allison [Tue, 29 Dec 1998 00:03:38 +0000 (00:03 +0000)]
lib/signal.c: Added CatchChildLeaveStatus() call needed in smbd/open.c and smbd/chgpasswd.c.
smbd/chgpasswd.c
smbd/open.c: Ensure that we replace SIGCLD handler with CatchChildLeaveStatus()
             *before* we expect to reap a child status - and reset it to CatchChild()
             after we've done the sys_waitpid(). The original CatchChild() code
             would eat the status code from the zombie in the signal handler, meaning
             that the sys_waitpid() calls in check_access_allowed_for_current_user()
             and chgpasswd would never return a status.
smbd/open.c:
smbd/reply.c:
smbd/close.c: Check error return on close() calls - ensure a valid error return
              is sent back to the client. This catches the "file truncated"
              bug when a user has run out of quota (or space) and the ENOSPC
              error is returned on the *close()* call, not the write() (eg. on
              an nfs mounted drive).
smbd/fileio.c: Added check for ESPIPE on sys_lseek() in file_seek() to allow
               people to use Windows clients to communicate with UNIX fifo's
               (like they could in 1.9.18).
Jeremy.

25 years agoModified packaging-prep so as to avoid use of "rm -f *"
John Terpstra [Sun, 27 Dec 1998 22:30:33 +0000 (22:30 +0000)]
Modified packaging-prep so as to avoid use of "rm -f *"

25 years agoFixing the last issue known about....
Jeremy Allison [Wed, 23 Dec 1998 22:47:15 +0000 (22:47 +0000)]
Fixing the last issue known about....
(with a filename of log123.abcd, a dir command of
dir l*.???.?.?.?.?.? should find the file, as it does on NT).
Jeremy.

25 years agoFixed issues with client wildcards. It turns out that NT matches
Jeremy Allison [Wed, 23 Dec 1998 22:12:33 +0000 (22:12 +0000)]
Fixed issues with client wildcards. It turns out that NT matches
wildcards against both long and short filenames in a trans2 wildcard
match. This fix gets us closer to NT compatibility (still not entirely
there yet.... one more issue I know about to fix....).
Jeremy.

25 years agoFixed bug where waitsecs was being ignored.
Jeremy Allison [Wed, 23 Dec 1998 01:43:13 +0000 (01:43 +0000)]
Fixed bug where waitsecs was being ignored.
Jeremy.

25 years agopassdb/pass_check.c: Added log of AFS auth error.
Jeremy Allison [Wed, 23 Dec 1998 00:01:13 +0000 (00:01 +0000)]
passdb/pass_check.c: Added log of AFS auth error.
smbd/password.c: Set debug loglevel of disabled account to 1 (I was bitten by
this recently).
Jeremy.

25 years agoConfigure fixes for QNX and NCR.
Jeremy Allison [Tue, 22 Dec 1998 23:38:37 +0000 (23:38 +0000)]
Configure fixes for QNX and NCR.
Jeremy.

25 years agoFixed missing ';'s in locking_slow code.
Jeremy Allison [Tue, 22 Dec 1998 22:04:06 +0000 (22:04 +0000)]
Fixed missing ';'s in locking_slow code.
Jeremy.

25 years agoSpelling mistake change due to very pick people (you know who you are :-).
Jeremy Allison [Tue, 22 Dec 1998 21:44:04 +0000 (21:44 +0000)]
Spelling mistake change due to very pick people (you know who you are :-).
Changed privilage to privilege.

Also added set_real_uid() call to lib/util_sec.c.
Removed last set[re]uid calls from quotas.c - all such calls now live only
in lib/util_sec.c.

Jeremy.

25 years agoRather large (I'm afraid) tidyup of the setuid handling code.
Jeremy Allison [Tue, 22 Dec 1998 02:53:06 +0000 (02:53 +0000)]
Rather large (I'm afraid) tidyup of the setuid handling code.
All setuid code now resides in the one module lib/util_sec.c.
The interfaces this module exports are :

void gain_root_privilage(void); - Set real/eff/saved uid's to 0.
void gain_root_group_privilage(void); - Set real/eff/saved gid's to 0.
int set_effective_uid(uid_t uid); - Set eff uid *only* to given value.
int set_effective_gid(gid_t gid); - Set eff gid *only* to given value.
BOOL become_user_permanently(uid_t uid, gid_t gid); - Set real/eff/saved uid's and gid's
to uid and gid permanently - with no way back to root.

Most of the quota code now uses these calls (except for a few
special cases).

smbd/chgpasswd.c: Ensured the dochild exits in the fork()'d child.
libsmb/nmblib.c: Fix from Jasper for memory leak.

Jeremy.

25 years agoSplit out all the set[re][e][res]uid() calls into one module that
Jeremy Allison [Tue, 22 Dec 1998 02:26:05 +0000 (02:26 +0000)]
Split out all the set[re][e][res]uid() calls into one module that
(hopefully) should be portable to all sorts of weird systems and
also provide standard interfaces for the rest of the code.
Jeremy.

25 years agoImplementing PHT standard SPEC settings.
John Terpstra [Mon, 21 Dec 1998 10:09:39 +0000 (10:09 +0000)]
Implementing PHT standard SPEC settings.

25 years agoswat.c 1. fixed bug where non-default parameters were not being
Herb Lewis [Fri, 18 Dec 1998 21:26:47 +0000 (21:26 +0000)]
swat.c 1. fixed bug where non-default parameters were not being
shown in basic view of shares and printers pages.

2. Rearranged shares and printers pages so delete button
is near dropdown (since it applies to value in dropdown)
Added Reset Values button when share is selected.

3. Added note at beginning of printers page and flagged
the auto loaded printers in the dropdown. Still need
reference in man page that explains options better.

4. Don't show create and delete options if don't have
write access in printers and shares page.

statuspage.c  Don't show start/stop/restart buttons or kill button if
not root.

25 years agomake browseable and available BASIC parameters for swat
Herb Lewis [Fri, 18 Dec 1998 01:11:09 +0000 (01:11 +0000)]
make browseable and available BASIC parameters for swat

25 years agoFixed tar recursion bug (it was a *.* mask instead of * being used, you
Jeremy Allison [Thu, 17 Dec 1998 22:43:39 +0000 (22:43 +0000)]
Fixed tar recursion bug (it was a *.* mask instead of * being used, you
were right Andrew :-).
Jeremy.

25 years agoinclude/nameserv.h nmbd/nmbd_packets.c nmbd/nmbd_responserecordsdb.c:
Jeremy Allison [Thu, 17 Dec 1998 21:38:13 +0000 (21:38 +0000)]
include/nameserv.h nmbd/nmbd_packets.c nmbd/nmbd_responserecordsdb.c:
Fixed 'nmbd running wild' bug by preventing recursion in retransmit_or_expire_response_records().
tests/crypttest.c: Updated for bigcrypt.
Jeremy.

25 years agomodify message for freeware version
Herb Lewis [Thu, 17 Dec 1998 21:35:21 +0000 (21:35 +0000)]
modify message for freeware version

25 years agomake sure we include sys/mman.h if available
Andrew Tridgell [Thu, 17 Dec 1998 01:01:24 +0000 (01:01 +0000)]
make sure we include sys/mman.h if available

25 years agoinclude/includes.h: Added MAXHOSTNAMELEN in case it wasn't defined.
Jeremy Allison [Thu, 17 Dec 1998 00:25:13 +0000 (00:25 +0000)]
include/includes.h: Added MAXHOSTNAMELEN in case it wasn't defined.
web/swat.c: Re-arranged static function to remove compile warning.
Jeremy.

25 years agoloadparm.c added function to reset number of services (for swat)
Herb Lewis [Wed, 16 Dec 1998 23:37:49 +0000 (23:37 +0000)]
loadparm.c added function to reset number of services (for swat)
swat.c fixed create new share and printer
proto.h new function in loadparm.c

25 years agoacconfig.h configure configure.in include/config.h.in: Added krb5 libs code back,
Jeremy Allison [Wed, 16 Dec 1998 21:48:33 +0000 (21:48 +0000)]
acconfig.h configure configure.in include/config.h.in: Added krb5 libs code back,
       based on 1.9.18 tree.
tests/crypttest.c: Added test for truncated salt in crypt.
passdb/ldap.c: Malloc checks.
passdb/pass_check.c: Added test for truncated salt in crypt. Added OSF1 enhanced
                     security fix.
Jeremy.

25 years agoacconfig.h configure configure.in include/config.h.in
Jeremy Allison [Tue, 15 Dec 1998 21:16:20 +0000 (21:16 +0000)]
acconfig.h configure configure.in include/config.h.in
lib/system.c script/mkproto.awk include/includes.h: Added sys_readdir that
      wraps readdir64.
lib/util.c: Changed gethostname() to use sizeof(hostname) as the second arg
for buffer size.
Jeremy.

25 years agofix globals page broken by my last checkin
Herb Lewis [Tue, 15 Dec 1998 18:59:40 +0000 (18:59 +0000)]
fix globals page broken by my last checkin
(that will teach me to check in anything while I am sick).

25 years agoin 2.0 branch:
Andrew Tridgell [Tue, 15 Dec 1998 03:18:06 +0000 (03:18 +0000)]
in 2.0 branch:

on Linux force fcntl/mmap based shared memory and on other systems
force IPC/shmem based shared memory.

25 years agopreparing for release of 2.0.0beta4
Samba Release Account [Tue, 15 Dec 1998 01:38:53 +0000 (01:38 +0000)]
preparing for release of 2.0.0beta4

25 years agoWHATSNEW.txt source/include/version.h: Updated for beta4.
Jeremy Allison [Tue, 15 Dec 1998 01:30:31 +0000 (01:30 +0000)]
WHATSNEW.txt source/include/version.h: Updated for beta4.
source/include/DesktopDB.h source/lib/streams.c: MAC support won't make it into 2.0,
although 2.0.1 will have it.
Jeremy.

25 years agoRe-created yodl docs.
Jeremy Allison [Mon, 14 Dec 1998 22:41:31 +0000 (22:41 +0000)]
Re-created yodl docs.
Jeremy.

25 years agosmb.h add new FLAG_SHARE to indicate which parameters are used
Herb Lewis [Mon, 14 Dec 1998 21:34:08 +0000 (21:34 +0000)]
smb.h add new FLAG_SHARE to indicate which parameters are used
on share page
loadparm.c added FLAG_SHARE and FLAG_PRINT to various parameters to
tell swat which page these belong to
swat.c only print parameters marked on printers and shares pages

25 years agoFixed debug statements so the name type being looked up is printed.
Jeremy Allison [Mon, 14 Dec 1998 20:23:56 +0000 (20:23 +0000)]
Fixed debug statements so the name type being looked up is printed.
Fixed lmhosts lookup so that -1 means wildcard nametype match.
Jeremy.

25 years agoMakefile.in: script install fix from Tim Rice.
Jeremy Allison [Mon, 14 Dec 1998 19:18:46 +0000 (19:18 +0000)]
Makefile.in: script install fix from Tim Rice.
lib/debug.c: File size check from Jasper.
Jeremy.

25 years agoAdded testparm scripts for invalid unix password sync problems.
Jeremy Allison [Sat, 12 Dec 1998 04:45:46 +0000 (04:45 +0000)]
Added testparm scripts for invalid unix password sync problems.
Jeremy

25 years agoFixed bug in smbpasswd where adding a user and mis-typing the new
Jeremy Allison [Sat, 12 Dec 1998 00:15:15 +0000 (00:15 +0000)]
Fixed bug in smbpasswd where adding a user and mis-typing the new
password a second time would add the user with a potentially random
garbage password.
Jeremy.

25 years agoFixed typo.
John Terpstra [Fri, 11 Dec 1998 22:12:58 +0000 (22:12 +0000)]
Fixed typo.

25 years agoneed to reload auto printer services on a save_reload
Herb Lewis [Fri, 11 Dec 1998 21:38:46 +0000 (21:38 +0000)]
need to reload auto printer services on a save_reload

25 years agoFixed file descriptor limit code for AIX 4.x. AIX doesn't support the
Jeremy Allison [Fri, 11 Dec 1998 21:12:52 +0000 (21:12 +0000)]
Fixed file descriptor limit code for AIX 4.x. AIX doesn't support the
fd limits and always returns RLIM_INFINITY for a RLIMIT_NOFILE query.
Jeremy.

25 years agoFixed missing include of smbw.h.
Jeremy Allison [Fri, 11 Dec 1998 20:50:16 +0000 (20:50 +0000)]
Fixed missing include of smbw.h.
Added strerror print for initgroups fail.
Jeremy.

25 years agoAdded configure fixes for UNIXWare and tidyups for SINIX.
Jeremy Allison [Fri, 11 Dec 1998 18:35:41 +0000 (18:35 +0000)]
Added configure fixes for UNIXWare and tidyups for SINIX.
Jeremy.

25 years agoswat what was called the synonym for "hosts allow" and "hosts deny"
Herb Lewis [Fri, 11 Dec 1998 18:20:49 +0000 (18:20 +0000)]
swat what was called the synonym for "hosts allow" and "hosts deny"

25 years agoAdded fixes from Jasper van der Neut <jasper@Cal005208.student.utwente.nl>
Jeremy Allison [Fri, 11 Dec 1998 02:34:00 +0000 (02:34 +0000)]
Added fixes from Jasper van der Neut <jasper@Cal005208.student.utwente.nl>
who is doing some pretty amazine nmbd work !
Jeremy.

25 years agoFixed name magle bug (PR#11883 based on a patch from xactdata@hotmail.com).
Jeremy Allison [Fri, 11 Dec 1998 02:02:22 +0000 (02:02 +0000)]
Fixed name magle bug (PR#11883 based on a patch from xactdata@hotmail.com).
Extension was being overwritten before use.
Jeremy.

25 years agoFixed configure bug with RedHat 5.1 where it uses setresgid even though
Jeremy Allison [Fri, 11 Dec 1998 00:24:23 +0000 (00:24 +0000)]
Fixed configure bug with RedHat 5.1 where it uses setresgid even though
this is not yet implemented.
Jeremy.

25 years agoHPUX fix. This looks like a big change but isn't actually, most of the
Jeremy Allison [Thu, 10 Dec 1998 23:52:34 +0000 (23:52 +0000)]
HPUX fix. This looks like a big change but isn't actually, most of the
changes are bzero -> memset as the compiler on HPUX is very picky about
bzero (probably a strange define).

The significant changes are in configure.in, to fix the HPUX shadow.h
problem and also move the large file support to the correct place.

passdb/pass_check.c: Added includes for KRB5, DCE and AFS if requested in autoconf.

tests/trapdoor.c: Fix to use setresuid and setresgid if defined.

The rest of the changes are bzero -> memset.

Jeremy.

25 years agoMakefile.in added PRINTER_OBJ to SWAT_OBJ so swat can
Herb Lewis [Thu, 10 Dec 1998 23:43:16 +0000 (23:43 +0000)]
Makefile.in added PRINTER_OBJ to SWAT_OBJ so swat can
enumerate printers
param/loadparm.c added parameter to lp_dump to limit number of items
dumped. Pulled real dump code into new function
lp_dump_one so it can be called by swat
utils/testparm.c extra parameter added for lp_dump call
web/statuspage.c got rid of extra > being printed when smbd not
running
web/swat.c allow auto loaded printers to be enumerated in
printer page
include/proto.h changed number of parameters in lp_dump and new
function lp_dump_one defined.

25 years agoAdded defines for HPUX large file support.
Jeremy Allison [Thu, 10 Dec 1998 19:33:44 +0000 (19:33 +0000)]
Added defines for HPUX large file support.
Jeremy.

25 years agoallow smbd to be started without a STATUS..LCK file
Andrew Tridgell [Thu, 10 Dec 1998 14:31:20 +0000 (14:31 +0000)]
allow smbd to be started without a STATUS..LCK file