kai/samba.git
26 years agofix bug when using lpstat as printcap file - remove space at start of
Herb Lewis [Fri, 30 Jan 1998 05:22:45 +0000 (05:22 +0000)]
fix bug when using lpstat as printcap file - remove space at start of
printer names generated
(This used to be commit 8f48a0571a4dda282bd3438e54a029400b7ca448)

26 years agoMakefile: Fix for OSF1 typo.
Jeremy Allison [Thu, 29 Jan 1998 08:25:46 +0000 (08:25 +0000)]
Makefile: Fix for OSF1 typo.
asyncdns.c: Fixes that went into 1.9.18p2 - allow unclocking of sigterm.
chgpasswd.c: char -> unsigned char fixes.
includes.h: AIX fix to get prototype for inet_ntoa.
local.h: Tune size of shared memory based on MAX_OPEN_FILES.
nmbd_mynames.c: Fix for nmbd repeated refresh bug.
nmbd_responserecordsdb.c: Fix for nmbd repeated refresh bug.
nmbd_winsserver.c: Fix for multi-homed registration optimisation.
smb.h: Moved default shared memory size to local.h
Jeremy.
(This used to be commit fa5466805685d461564054d7d9947948fc56ae93)

26 years agoFix from Charles Hoch (hoch@hpl.hp.com). Whne there is no data
Jeremy Allison [Wed, 28 Jan 1998 13:11:58 +0000 (13:11 +0000)]
Fix from Charles Hoch (hoch@hpl.hp.com). Whne there is no data
to send, setting the data alignment to a 4 byte boundary causes
a few extra bytes to be sent. This seems to cause the NT redirector
to *sometimes* fail.
Jeremy.
(This used to be commit f6ee3263dac960772024bf9009ad0ddce6d8f289)

26 years agoget rid of reference to removed file
Herb Lewis [Wed, 28 Jan 1998 11:45:57 +0000 (11:45 +0000)]
get rid of reference to removed file
(This used to be commit afafae133f32f33ae642662a7e9cbb427ce4691a)

26 years ago*** empty log message ***
Volker Lendecke [Mon, 26 Jan 1998 04:53:07 +0000 (04:53 +0000)]
*** empty log message ***
(This used to be commit be395f4bce2863f4bd131793ea37f47f05e4151f)

26 years agoalways align both the parameter and data bytes on a 4 byte boundary in
Andrew Tridgell [Sun, 25 Jan 1998 15:36:11 +0000 (15:36 +0000)]
always align both the parameter and data bytes on a 4 byte boundary in
trans2 responses.
I'm not at all convinced this was causing problems, because
observations of Win95 show that it produces totally non-aligned
paramater bytes and 2 byte aligned data bytes. We were previously
always producing 2 byte aligned data and parameter bytes so we already
had "better" alignment than Win95.
lets hope no clients rely on servers producing unaligned data or
parameters!
(This used to be commit 68ad11a7352824fea46ecbe67a3827a7ba3bcbab)

26 years agoAdded log message so we can tell when free_service is called.
Jeremy Allison [Sat, 24 Jan 1998 12:34:16 +0000 (12:34 +0000)]
Added log message so we can tell when free_service is called.
Just in case of problems.
Jeremy.
(This used to be commit ee307df9ad1f03d7f8e515549902abd96dae72fc)

26 years agoFix for memory leak in loadparm.c - donated by Branko Cibej <branko.cibej@hermes.si>
Jeremy Allison [Sat, 24 Jan 1998 12:26:17 +0000 (12:26 +0000)]
Fix for memory leak in loadparm.c - donated by Branko Cibej <branko.cibej@hermes.si>
I checked this out and it looks ok - the bzero() in init_service() was
overwriting the pointers pservice->szService and pservice->copymap
that should have been freed in copy_service() the line later. This
fix frees pservice->szService and pservice->copymap inside free_service()
and sets them to zero so they won't be freed again.
Jeremy.
(This used to be commit 0bcb00e2bad999df859fdff59ce720d34de9b1ad)

26 years agoAdded get_create_time() function to time.c.
Jeremy Allison [Sat, 24 Jan 1998 08:49:21 +0000 (08:49 +0000)]
Added get_create_time() function to time.c.
This gets the minimum timestamp associated with a file.
reply.c and trans2.c then return this as the create
time. Designed to fix problems with VC++ and others.
Jeremy.
(This used to be commit e3d5f6196d6eff707c78941696a368216e2a7410)

26 years agoChanged code that truncates salt after 2 characters so that it becomes
Jeremy Allison [Fri, 23 Jan 1998 13:52:17 +0000 (13:52 +0000)]
Changed code that truncates salt after 2 characters so that it becomes
HPUX specific. This fixes a bug with FreeBSD md5 crypt implementation
that needs all of the password characters.
It seems better to make this an HPUX specific thing.
Jeremy.
(This used to be commit 91a2b746d3fac261d4be3bd7afa3d5bb601b3d27)

26 years agoFixed warnings with gcc (assignments inside if statements).
Jeremy Allison [Fri, 23 Jan 1998 08:35:15 +0000 (08:35 +0000)]
Fixed warnings with gcc (assignments inside if statements).
Jeremy.
(This used to be commit 1a9e25d3bc610a1d49241e2fe39530813d983882)

26 years agochanges to correctly use some HP printer inf files
Herb Lewis [Fri, 23 Jan 1998 07:59:29 +0000 (07:59 +0000)]
changes to correctly use some HP printer inf files
(This used to be commit ab894c3e1de582864ad9c0f6ae797b73b4c2ba41)

26 years agosync with changes to 1.9.18 tree
Herb Lewis [Fri, 23 Jan 1998 07:58:45 +0000 (07:58 +0000)]
sync with changes to 1.9.18 tree
(This used to be commit 175e85279df64a5bcfd5c3ecf50884bb970ab611)

26 years agoChanged phone numbers for BitWizard.
Jeremy Allison [Fri, 23 Jan 1998 05:58:59 +0000 (05:58 +0000)]
Changed phone numbers for BitWizard.
Jeremy.
(This used to be commit 76e467238f195d94c0afb67a2d3af3560f26d3a0)

26 years agonmbd.c, server.c: Added #ifndef MEM_MAN around code that sets the SIGUSR1
Jeremy Allison [Fri, 23 Jan 1998 05:22:19 +0000 (05:22 +0000)]
nmbd.c, server.c: Added #ifndef MEM_MAN around code that sets the SIGUSR1
and SIGUSR2 signals. This allows the MEM_MAN code to be compiled in and
the memory debug feature to be used with SIGUSR1.
Jeremy.
(This used to be commit 43ef7e3cb5bb971ff6ddf8230b08995e55b7c6e1)

26 years agoThis is *not* a big change (although it looks like one).
Jeremy Allison [Thu, 22 Jan 1998 13:27:43 +0000 (13:27 +0000)]
This is *not* a big change (although it looks like one).
This is merely updating the Copyright statements from 1997 to 1998.
It's a once a year thing :-).
NO OTHER CHANGES WERE MADE.
Jeremy.
(This used to be commit b9c16977231efb274e08856f7f3f4408dad6d96c)

26 years agoprinting.c: Bug fix for lpng reporting.
Jeremy Allison [Thu, 22 Jan 1998 09:25:05 +0000 (09:25 +0000)]
printing.c: Bug fix for lpng reporting.
server.c: Large fix for oplock deadlock bug.
util.c: Fix for oplock deadlock bug.
Jeremy.
(This used to be commit 4cae830ab3a942b2f2868173a492d02f6332651d)

26 years agoAdded Romanian consultant.
Jeremy Allison [Thu, 22 Jan 1998 07:33:35 +0000 (07:33 +0000)]
Added Romanian consultant.
Jeremy.
(This used to be commit 722dc838c754e9367cca5a3bd78bbb5d5871936a)

26 years ago*** empty log message ***
Volker Lendecke [Thu, 22 Jan 1998 03:47:48 +0000 (03:47 +0000)]
*** empty log message ***
(This used to be commit 1e1b0c80f84657f89ffcd4132887cd9f8a26885a)

26 years agoFixed send_mailslot code where src_type was always being set to zero.
Jeremy Allison [Wed, 21 Jan 1998 12:15:07 +0000 (12:15 +0000)]
Fixed send_mailslot code where src_type was always being set to zero.
Fix found by Bernhard Laeser <nlaesb@ascom.ch>.
Jeremy.
(This used to be commit 303b5a79c83246e1895f9478e187610addfd2862)

26 years agofixed a few typos in the instructions and added a longer explaination for
Herb Lewis [Wed, 21 Jan 1998 09:46:04 +0000 (09:46 +0000)]
fixed a few typos in the instructions and added a longer explaination for
how the printers.def entry is constructed.
(This used to be commit d9be263e598cbb10d2632247a82043aa19840012)

26 years agofix problems with using inf files from HP for DesignJet 750C (C3195A)
Herb Lewis [Wed, 21 Jan 1998 09:17:51 +0000 (09:17 +0000)]
fix problems with using inf files from HP for DesignJet 750C (C3195A)
(This used to be commit 4e258eecf7088d78b285440ca87386987196eaec)

26 years agoFixed bug found by Bernhard Laeser where we are announcing to the wrong
Jeremy Allison [Tue, 20 Jan 1998 04:58:41 +0000 (04:58 +0000)]
Fixed bug found by Bernhard Laeser where we are announcing to the wrong
DMB name.
Jeremy.
(This used to be commit 6b3d4620c128fe1f77f579a451eac7f41a83064f)

26 years agoAdded italian consultancy.
Jeremy Allison [Sat, 17 Jan 1998 11:42:51 +0000 (11:42 +0000)]
Added italian consultancy.
Jeremy.
(This used to be commit 9e864db97050d35675a2629ad0fb3decbd72de8f)

26 years agocharcnv.c: Added codepage 866 support onto the file system. Patch
Jeremy Allison [Sat, 17 Jan 1998 07:08:21 +0000 (07:08 +0000)]
charcnv.c: Added codepage 866 support onto the file system. Patch
from Max Khon <max@iclub.nsu.ru>.
chgpasswd.c: Allow old RAP change password to work with encrypted
passwords. Samba can now allow Windows 95/NT clients to securely
change the Lanman password ! (But not the NT hash - that gets lost).
ipc.c:
smbdes.c:
smbpass.c: Support for the above.
server.c: #ifdef'ed out fix for NT redirector bug.
util.c: Fix NIS bug with server name.
Jeremy.
(This used to be commit cd9fad92d0316e5a0007ba3c5668906dc2f011f1)

26 years agoreply.c:
Jeremy Allison [Fri, 16 Jan 1998 08:58:00 +0000 (08:58 +0000)]
reply.c:
server.c: Test fix for NT worstation SMBmv oplock bug.
smbdes.c: Addition of 'forward' parameter in preparation of allowing
password change.
Jeremy.
(This used to be commit 0b0b1fb122a52e67a8fdc77d013ad0b3bbb90d19)

26 years agoAdding new codepage file.
Jeremy Allison [Fri, 16 Jan 1998 06:31:01 +0000 (06:31 +0000)]
Adding new codepage file.
Jeremy.
(This used to be commit 91155265db1f0916716bf8da10bfda4e11124c55)

26 years agoMakefile: Added new codepage - 866.
Jeremy Allison [Fri, 16 Jan 1998 06:29:38 +0000 (06:29 +0000)]
Makefile: Added new codepage - 866.
charset.c: Supporting code for codepage 866.
clientutil.c: Fix compile bug in little-used #define.
includes.h: Supporting code for codepage 866.
make_smbcodepage.c: Supporting code for codepage 866.
pcap.c: Fix bug for lpstat.
Jeremy.
(This used to be commit 6040d7a39e5d5ab426905aa79b871df815fb9b62)

26 years agoreply.c: Added timestamp to attack warning.
Jeremy Allison [Thu, 15 Jan 1998 04:57:54 +0000 (04:57 +0000)]
reply.c: Added timestamp to attack warning.
server.c: Fixed security=share problem where the vuid was still being
looked at.
Jeremy.
(This used to be commit ab8d615fe2004c3ca93dd2978ba988ea89d7fd74)

26 years agoREADME describe inst package version number correctly
Herb Lewis [Wed, 14 Jan 1998 07:17:37 +0000 (07:17 +0000)]
README describe inst package version number correctly
idb.pl fix some permission problems with shell scripts
sambalp new script supplied by Alan Stebbens that can run setuid to
properly print banner page for known users.
smb.conf  use new sambalp by default.
psfixes.pl remove - now handled by sambalp
(This used to be commit 129aab955c069206109461e31f2b0244d8586908)

26 years agofile srv_lsa_hnd.c was initially added on branch BRANCH_NTDOM.
Luke Leighton [Wed, 14 Jan 1998 06:15:10 +0000 (06:15 +0000)]
file srv_lsa_hnd.c was initially added on branch BRANCH_NTDOM.
(This used to be commit d6354d60a1f96c0822a6345246d7b1cf52ebd391)

26 years agoleft out a piece of my last fix for inst package version number
Herb Lewis [Wed, 14 Jan 1998 02:47:36 +0000 (02:47 +0000)]
left out a piece of my last fix for inst package version number
(This used to be commit 66899c27cd4b475bb7974c4d6de6ecb6764fb6fb)

26 years agofix bug in search string
Herb Lewis [Tue, 13 Jan 1998 05:08:08 +0000 (05:08 +0000)]
fix bug in search string
(This used to be commit 04d2773a8e3b7c7dda33cd89b3042c868a1bb8dd)

26 years agopropogate my cgi changes to the main branch
Andrew Tridgell [Mon, 12 Jan 1998 00:32:27 +0000 (00:32 +0000)]
propogate my cgi changes to the main branch
(This used to be commit 215c97e83ac74757cffb4f64176c80ddb845d65f)

26 years ago*** empty log message ***
Andrew Tridgell [Mon, 12 Jan 1998 00:20:10 +0000 (00:20 +0000)]
*** empty log message ***
(This used to be commit 7b031586ca33a381eb0e27f3557f43c2550df5f8)

26 years ago*** empty log message ***
Andrew Tridgell [Sun, 11 Jan 1998 23:59:11 +0000 (23:59 +0000)]
*** empty log message ***
(This used to be commit 440535a0c755cfb55ced8fe537e2251d6a30714f)

26 years ago*** empty log message ***
Andrew Tridgell [Sun, 11 Jan 1998 23:28:39 +0000 (23:28 +0000)]
*** empty log message ***
(This used to be commit a307b5155594a12ca978190cc9dec52e203e0fd3)

26 years agoFollowing discussions with Cristian Gafton (Red Hat) we have decided to make
John Terpstra [Sat, 10 Jan 1998 11:42:29 +0000 (11:42 +0000)]
Following discussions with Cristian Gafton (Red Hat) we have decided to make
PAM silent about it's actions. This reduced error logging for EVERY password
validation request. Refer to password.c PAM section for further info.
Fiels Affected: password.c
(This used to be commit 7a1a8042dd005e26e610a16eaaa693f119b874c7)

26 years agoipc.c: Fixed problem where we were not returning 'buffer too small'
Jeremy Allison [Sat, 10 Jan 1998 08:11:15 +0000 (08:11 +0000)]
ipc.c: Fixed problem where we were not returning 'buffer too small'
when NT sends up a mdrcnt of zero.
Jeremy.
(This used to be commit 2a75519b8592948b2f35ecca040bd3f88bf89be5)

26 years agodocs/Support.txt: Removed consultant.
Jeremy Allison [Fri, 9 Jan 1998 05:33:27 +0000 (05:33 +0000)]
docs/Support.txt: Removed consultant.
source/Makefile: Added Volker's comment.
source/nmbd_become_lmb.c:
source/nmbd_browsesync.c:
source/nmbd_incomingdgrams.c: Fixed userdata alignment problems.
source/mem_man/mem_man.c:
source/mem_man/mem_man.h: added smb_ prefix to stop namespace collisions.
Jeremy.
(This used to be commit 4c8af3bc9f43b2427609cbeecb7940b1753a9a1c)

26 years agofix bug in version numbering scheme
Herb Lewis [Thu, 8 Jan 1998 16:34:09 +0000 (16:34 +0000)]
fix bug in version numbering scheme
(This used to be commit 2e9f4b5daa74484cbc8c3dc929ab3ae42d663f9f)

26 years agomissing a couple of binary files in the distribution
Herb Lewis [Thu, 8 Jan 1998 10:50:18 +0000 (10:50 +0000)]
missing a couple of binary files in the distribution
(This used to be commit 84e2f7854769190816690f55bfd442e8bedc92fe)

26 years agopreparing for release of 1.9.18
Samba Release Account [Thu, 8 Jan 1998 06:15:48 +0000 (06:15 +0000)]
preparing for release of 1.9.18
(This used to be commit c3f725ad889650147cf5b931ca9f34836daaf942)

26 years agoFinal changes - ready for 1.9.18.
Jeremy Allison [Thu, 8 Jan 1998 05:27:30 +0000 (05:27 +0000)]
Final changes - ready for 1.9.18.
Jeremy.
(This used to be commit 5e62a96e504f298b45dae904957029de91b3e3c4)

26 years agoFixed an apparent typo:
Christopher R. Hertel [Thu, 8 Jan 1998 03:04:55 +0000 (03:04 +0000)]
Fixed an apparent typo:
2551c2551
< #endif /NO_FORK_DEBUG */
---
> #endif /* NO_FORK_DEBUG */
Chris -)-----
(This used to be commit 954fc7e0d01443f4bfc7157f2dcba2187f6700ec)

26 years agoUpdated for 1.9.18 - just need a few more changes & it's done.
Jeremy Allison [Wed, 7 Jan 1998 13:36:06 +0000 (13:36 +0000)]
Updated for 1.9.18 - just need a few more changes & it's done.
Jeremy.
(This used to be commit d0ae436de138e84fbbbbd2dc4f5617365d907f4f)

26 years agoEnsure that if we are in share mode security that the smb_uid
Jeremy Allison [Wed, 7 Jan 1998 08:29:15 +0000 (08:29 +0000)]
Ensure that if we are in share mode security that the smb_uid
field is invalid.
Jeremy.
(This used to be commit a689ca1ce5c3ffdc753dce329f51a8ede0592f29)

26 years agoincludes.h: Added FreeBSD 3.x fixes. Added HPUX10.x fixes.
Jeremy Allison [Wed, 7 Jan 1998 06:21:56 +0000 (06:21 +0000)]
includes.h: Added FreeBSD 3.x fixes. Added HPUX10.x fixes.
interface.c: Added netmask fix.
nmbd_nameregister.c: Fixed unitialised variable warnings.
nmbd_winsproxy.c: Fixed unitialised variable warnings.
nmbd_winsserver.c: Fixed DEC warnings.
print_svid.c: Fixed DEC warnings.
printing.c: Added LPRng fixes.
Jeremy.
(This used to be commit 28aff043c4a3693a0c20e87c7ce11eb4bf285b78)

26 years agoUpdated french contact address.
Jeremy Allison [Wed, 7 Jan 1998 05:34:07 +0000 (05:34 +0000)]
Updated french contact address.
(This used to be commit 800510a852db046bf88a88c966c80d71b474f4ef)

26 years agoAdded manpages.
Volker Lendecke [Tue, 6 Jan 1998 00:13:44 +0000 (00:13 +0000)]
Added manpages.
Removed obsolete options from smbmount help message.
Volker
(This used to be commit 2d550d28cd9d3cdb6f72e1f387d9c65dbc1404ad)

26 years agothe real source code for the smbfs utilities. Forgot to do
Volker Lendecke [Mon, 5 Jan 1998 22:56:29 +0000 (22:56 +0000)]
the real source code for the smbfs utilities. Forgot to do
cvs add first.
Volker
(This used to be commit 65406a546e15e53fcb0b724d0df3bc56a784edff)

26 years agoAdded 3 commands:
Volker Lendecke [Mon, 5 Jan 1998 22:54:32 +0000 (22:54 +0000)]
Added 3 commands:
smbmount: This is a stripped down smbclient that communicates with
the Linux 2.1.x kernel to supply authenticated smb connections for
smbfs mount points.
smbmnt/smbumount: setuid commands that do the actual smb mount system
call after having done the appropriate security checks
(This used to be commit ccbbc4e647ad900b215dae949d5bcd45671c68c8)

26 years agoFixed type that referred to regedit.exe instead of regedt32.exe.
John Terpstra [Mon, 5 Jan 1998 13:02:03 +0000 (13:02 +0000)]
Fixed type that referred to regedit.exe instead of regedt32.exe.
(This used to be commit 6a55305070f7dfd8a615a7f2c6d10c171ff8f0c5)

26 years agofixed type in list of ignored files
Herb Lewis [Sat, 3 Jan 1998 05:26:31 +0000 (05:26 +0000)]
fixed type in list of ignored files
(This used to be commit ae50080b6a09b62fbca0260e07a1bca4cde139ff)

26 years agoadded description of changes I made
Herb Lewis [Sat, 3 Jan 1998 05:22:35 +0000 (05:22 +0000)]
added description of changes I made
(This used to be commit 6b8f8005f2e04665ceefe4ad98587617ff2666d0)

26 years agoadded printout of file list to stderr so you know what files you need to
Herb Lewis [Sat, 3 Jan 1998 05:12:10 +0000 (05:12 +0000)]
added printout of file list to stderr so you know what files you need to
copy to your printer$ share
(This used to be commit bdfa5c709986051e78198c68c5a90358fdfa780e)

26 years agoadded commented out sections for supporting automatically providing printer
Herb Lewis [Sat, 3 Jan 1998 03:55:52 +0000 (03:55 +0000)]
added commented out sections for supporting automatically providing printer
drivers to Win95 clients.
(This used to be commit e414f4223208dffb464940da90d536add88183db)

26 years agoadded timestrings to become and unbecome domain/local master browser
Herb Lewis [Sat, 3 Jan 1998 03:35:13 +0000 (03:35 +0000)]
added timestrings to become and unbecome domain/local master browser
messages.
(This used to be commit 5e7e3d18b51e1eb949bc793d3106a17d8e65a1af)

26 years agofix printer driver rpc to prevent core dumps.
Herb Lewis [Fri, 2 Jan 1998 13:33:20 +0000 (13:33 +0000)]
fix printer driver rpc to prevent core dumps.
(This used to be commit 0c82d139e3eb20a00016df30f33835ab5150ecea)

26 years agofix up perl script so it is a little cleaner and also works with perl 4
Herb Lewis [Fri, 2 Jan 1998 04:26:39 +0000 (04:26 +0000)]
fix up perl script so it is a little cleaner and also works with perl 4
(This used to be commit 5b724c6551c963454fe4ce27cfc8756e0c76712d)

26 years agofixes to make_printerdef.c to generate a correct printers.def file
Herb Lewis [Thu, 1 Jan 1998 13:55:28 +0000 (13:55 +0000)]
fixes to make_printerdef.c to generate a correct printers.def file
changes to ipc.c to use new printers.def file
(This used to be commit 52e275c4ccc1b7f0c2ef8d12d28065898a1c89c9)

26 years agoavoid the ~ operator in netmask operations as apparently it causes
Andrew Tridgell [Mon, 29 Dec 1997 18:46:20 +0000 (18:46 +0000)]
avoid the ~ operator in netmask operations as apparently it causes
problems on some systems (eg. freeBSD 2.2.2). I'm surprised by this
but the change looks harmless. Patch from fred@datalync.com
(This used to be commit ae8151330deafb7abc5aa604e7c8c0b762e3aa20)

26 years agoa dummy change to shmem_sysv.c to try and break CVS out of a problem
Andrew Tridgell [Mon, 29 Dec 1997 12:34:16 +0000 (12:34 +0000)]
a dummy change to shmem_sysv.c to try and break CVS out of a problem
with the ntdom branch
(This used to be commit 213c3a4ed27cdc689e941b9a6d70e02e8b7dedd4)

26 years agofixed another couple of minor type errors (they could cause incorrect
Andrew Tridgell [Fri, 26 Dec 1997 10:07:05 +0000 (10:07 +0000)]
fixed another couple of minor type errors (they could cause incorrect
output but not a core dump)
(This used to be commit 4dc66214a0cdf16e48cca961914fae37b3762330)

26 years agofixed a couple of illegal uses of scanf() in the nmbd wins code. They
Andrew Tridgell [Fri, 26 Dec 1997 10:01:57 +0000 (10:01 +0000)]
fixed a couple of illegal uses of scanf() in the nmbd wins code. They
caused a core dump under IRIX when compiled with -64.
In general you cannot assume things about variable sizes. In
particular sizeof(time_t) may not equal sizeof(long) and
sizeof(uint16) may not equal sizeof(short).
There are probably other bugs like this. We'll need to check all
format statements for use of %ld, %hx etc. In general these should not
be used unless you have an explicit cast to the appropriate type.
(This used to be commit 6ea907e78672558d470e9a819982940a9228e2fa)

26 years agouse _exit to exit a child
Andrew Tridgell [Fri, 26 Dec 1997 09:57:40 +0000 (09:57 +0000)]
use _exit to exit a child
(This used to be commit 992b1cbc143be910d9b8e65afdc82c43d33650a5)

26 years agoThis is actually Jeremy, working as Herb :-).
Herb Lewis [Wed, 24 Dec 1997 15:42:14 +0000 (15:42 +0000)]
This is actually Jeremy, working as Herb :-).
Fixed bug where, when server is shut down it would always
do a lm announce broadcast of shutdown. This could cause other
nmbd's to think that they have seen an lm announce broadcast and
start doing it themselves.
Changed to only send lm announce shutdown if admin configured it
or one was seen on the subnet.
Jeremy.
(This used to be commit 64c8111574ff9fa00d5b43b146ae4d6f6bdf0565)

26 years agopreparing for release of 1.9.18alpha14
Samba Release Account [Wed, 24 Dec 1997 10:59:38 +0000 (10:59 +0000)]
preparing for release of 1.9.18alpha14
(This used to be commit d3a238e7ac452690bd35f399357b8795100f60a3)

26 years agoUpdated WHATSNEW.txt for 1.9.18alpha14 release.
Jeremy Allison [Wed, 24 Dec 1997 10:50:43 +0000 (10:50 +0000)]
Updated WHATSNEW.txt for 1.9.18alpha14 release.
Added CVS_ACCESS to tell people how to use cvs
to keep up-to-date.
Jeremy.
(This used to be commit 8f721f8c1d758c6f9483145a1b39e9264c8011f4)

26 years agoAdded docs for new signal handling functions.
Jeremy Allison [Wed, 24 Dec 1997 09:33:06 +0000 (09:33 +0000)]
Added docs for new signal handling functions.
Jeremy.
(This used to be commit 24fb57e7507338845c2075dbd6d86922b3f028ed)

26 years agoAdded SIGUSR1/SIGUSR2 handling.
Jeremy Allison [Wed, 24 Dec 1997 09:30:56 +0000 (09:30 +0000)]
Added SIGUSR1/SIGUSR2 handling.
Sending nmbd/smbd a SIGUSR1 will raise the debug level by one (capped at 10)
sending a SIGUSR2 will lower it (lower limit at zero).
Jeremy.
(This used to be commit 6a3cb6f4b46129e4d799a24d34cdb9460ed8910f)

26 years agonmbd_elections.c: Added new parameter to dump_workgroups call.
Jeremy Allison [Wed, 24 Dec 1997 08:49:44 +0000 (08:49 +0000)]
nmbd_elections.c: Added new parameter to dump_workgroups call.
nmbd_incomingdgrams.c: Deal with announcements with servertype == 0 - these
 are announcements that a machine is shutting down and must be treated differently.
nmbd_serverlistdb.c: Exposed remove_server_from_workgroup as external.
  Added code to dump out workgroups on signal correctly.
nmbd_workgroupdb.c: Added new parameter to dump_workgroups call.
Jeremy.
(This used to be commit f7591109b968c66012af5e9fe818bba8e6f1cf23)

26 years agoFinally added the code Andrew wanted that will allow a Samba domain
Jeremy Allison [Wed, 24 Dec 1997 07:10:04 +0000 (07:10 +0000)]
Finally added the code Andrew wanted that will allow a Samba domain
master browser to use the *<1b> feature of the Samba WINS server to
get a full workgroup list.
nmbd.c: Added timed call to collect_all_workgroup_names_from_wins_server().
nmbd_browsesync.c: Meat of the code to implement collect_all_workgroup_names_from_wins_server().
nmbd_incomingdgrams.c: Fixed comment typo.
Jeremy.
(This used to be commit 1a3ab3e84a415a6d0d9b4cafb3f0f6e8cbe3fa69)

26 years agoBugfix from Branko Cibej <branko.cibej@hermes.si>
Jeremy Allison [Wed, 24 Dec 1997 04:32:01 +0000 (04:32 +0000)]
Bugfix from Branko Cibej <branko.cibej@hermes.si>
- client.c had a workaround embedded in it for his
earlier bug in StrnCaseCmp - removed this.
Jeremy.
(This used to be commit 7cb4e4b099cef0be3a7440bd5feb8b3d0c3c5f18)

26 years agoBacked out changes that attempted to address a pointer array using -1,0,1.
Christopher R. Hertel [Wed, 24 Dec 1997 02:50:19 +0000 (02:50 +0000)]
Backed out changes that attempted to address a pointer array using -1,0,1.
Jeremy pointed out that there might be problems with this.  Darn shame.
(This used to be commit ce9acc96a6cbc91f0a3f95221c3e8f801cbdb602)

26 years agoFixed nastly little bug where client was sending open_and_X call
Jeremy Allison [Tue, 23 Dec 1997 13:21:36 +0000 (13:21 +0000)]
Fixed nastly little bug where client was sending open_and_X call
with smb_mode (smb_vwv[3]) of 0x20 == DENY_WRITE + read-only-open.
and smb_ofun (smb_vwv[8]) of 0x11 == Create if not exist plus append
on a read-only share.
This was mapped into the strange unix flags of (O_RDONLY|O_CREAT)
- essentially O_CREAT as O_RDONLY == 0.
We were checking the unix flags directly against O_RDONLY instead
of masking off the open mode flag bits before doing the comparison,
so this open was being refused even though it was valid on a
read-only share.
Also ensured that the O_CREAT bit was masked out of the flags
bit if the open was done on a read-only share (as doing a unix
open( filename, O_RDONLY|O_CREAT, xxx) will create a zero length
file if the user had permission to write into the directory - which
should be denied on a read-only share.
Thanks to Mark Peek @ Whistle for giving me this test case.
Jeremy.
(This used to be commit eae921ac632c8297836b85e909903da0602eac0e)

26 years agoFixed security bug when 'force user' and 'user only' are set.
Jeremy Allison [Tue, 23 Dec 1997 11:30:58 +0000 (11:30 +0000)]
Fixed security bug when 'force user' and 'user only' are set.
Reported by Brian McCauley <B.A.McCauley@bham.ac.uk>.
Jeremy.
(This used to be commit 00067800a25d6f5fe11e833a01d5a7a1e76dcc11)

26 years agoFixes to compile under OpenBSD from "Todd T. Fries" <toddf@acm.org>
Jeremy Allison [Tue, 23 Dec 1997 07:15:59 +0000 (07:15 +0000)]
Fixes to compile under OpenBSD from "Todd T. Fries" <toddf@acm.org>
Jeremy.
(This used to be commit 3c9292505914e2119fa7b1973c9fbbe1742262b2)

26 years agoarchitecture.doc: Re-added since I lost it (sorry Dan :-).
Jeremy Allison [Tue, 23 Dec 1997 06:38:36 +0000 (06:38 +0000)]
architecture.doc: Re-added since I lost it (sorry Dan :-).
nmbd.c nmbd_responserecordsdb.c: Spelling mistake fixes.
Jeremy.
(This used to be commit f5dfc8913bcce71f14b59c5ed8415b0f54b58e6c)

26 years agoUpdates for 1.9.18
Dan Shearer [Sun, 21 Dec 1997 00:00:25 +0000 (00:00 +0000)]
Updates for 1.9.18
(This used to be commit 338407732d1473ab3682c6090db297e76d864b94)

26 years agoPut it in the right directory :~)
Dan Shearer [Sat, 20 Dec 1997 23:44:25 +0000 (23:44 +0000)]
Put it in the right directory :~)
(This used to be commit 49694879a0f96b75bb2ca5ec120a5867706afc90)

26 years agoChris' smb.conf parsing doco
Dan Shearer [Sat, 20 Dec 1997 23:40:17 +0000 (23:40 +0000)]
Chris' smb.conf parsing doco
(This used to be commit 3f0ecaceb4adbb1f75c3b84fbd031596c37ec84c)

26 years agoFixed stupid bug in read_smb_len where I was calling itself - now
Jeremy Allison [Sat, 20 Dec 1997 14:52:48 +0000 (14:52 +0000)]
Fixed stupid bug in read_smb_len where I was calling itself - now
calling the correct fn.
Jeremy.
(This used to be commit c62aa0a7600269c2bb13b939857716a6ee0f34c1)

26 years agoclient.c:
Jeremy Allison [Sat, 20 Dec 1997 14:36:11 +0000 (14:36 +0000)]
client.c:
clientgen.c:
clientutil.c:
clitar.c: Changed usage of receive_smb to new function client_receive_smb
          except for one use of receive_smb in client.c. This is the
          receive_smb used to discard packets received whilst in a
          keyboard wait state.
util.c: Created new function client_receive_smb that ignores session
        keepalives just as the old receive_smb used to do. Created
        internal function read_smb_length_return_keepalive that is
        used internally by the changed receive_smb call.
        Changed read_smb_len to not use an internal buffer - it is
        never called with a null buffer so such code is redundant.
Jeremy.
(This used to be commit 1084fb46821cb96702da35439da4a8df9d255698)

26 years agoloadparm.c: Added fix for veto oplock files bug from Charles Hoch <hoch@hplcgh.hpl...
Jeremy Allison [Sat, 20 Dec 1997 10:52:00 +0000 (10:52 +0000)]
loadparm.c: Added fix for veto oplock files bug from Charles Hoch <hoch@hplcgh.hpl.hp.com>
server.c, util.c: Added fix for oplock break requests blocking due to server being
                  blocked in read call. Bug found by Charles Hoch <hoch@hplcgh.hpl.hp.com>.
Jeremy.
(This used to be commit 209f894fdbcfbf7a7952b6228342b86e088a9582)

26 years agoThis may be a waste of time, but I thought if we keep nibbling at this it might
Dan Shearer [Sat, 20 Dec 1997 10:06:07 +0000 (10:06 +0000)]
This may be a waste of time, but I thought if we keep nibbling at this it might
end up being a curent announce for each new release. Then again maybe we should
start from the one Jeremy and I did for 1.9.17. Just doodling really.
(This used to be commit ae9cd0307e9562ca82bb62055df1aeef070c12d1)

26 years agoMinor spelling, wording changes to intro
Dan Shearer [Sat, 20 Dec 1997 09:52:02 +0000 (09:52 +0000)]
Minor spelling, wording changes to intro
(This used to be commit 0cbb60976a59effeda7d554a3962915dcb5f5c79)

26 years agotrans2.c: Forced trans2_findfirst to behave as NT does in error returns.
Jeremy Allison [Sat, 20 Dec 1997 05:25:37 +0000 (05:25 +0000)]
trans2.c: Forced trans2_findfirst to behave as NT does in error returns.
util.c: Applied fix from Branko Cibej <branko.cibej@hermes.si> where
StrnCaseCmp tests one character too many.
Jeremy.
(This used to be commit cb771b2667070cff8d6cf86998a11ba2e4977690)

26 years agoAdding the cache module.
Christopher R. Hertel [Fri, 19 Dec 1997 09:32:58 +0000 (09:32 +0000)]
Adding the cache module.
I'll be using the cache module to replace the name cache in mangle.c.  The
new one should be much faster and should require less memory.
Another feature is that the cache size can be limited by the amount of
memory used in addition to the number of entries allowed.  With the
current cache, the default is to allocate 12800 bytes representing 50
entries (256 bytes each).  With the same amount of memory, I should be able
to load over around two hundred entries.
Changes to the AVL trees were minor (missing comments).
Chris -)-----
(This used to be commit 45962779a658b0b78895ae08ad394e870ce6ed10)

26 years agokanji.h: Fixed problems with re-definitions of strchr and others on AIX.
Jeremy Allison [Thu, 18 Dec 1997 11:05:00 +0000 (11:05 +0000)]
kanji.h: Fixed problems with re-definitions of strchr and others on AIX.
nmbd_nameregister.c: Applied fix found by "Eloy A. Paris" <eparis@ven.ra.rockwell.com>
(don't re-use lists after you have freed them :-).
Jeremy.
(This used to be commit bcfcc39a2752de0fb35b419d005bb1a86fd15fea)

26 years agoMissed terminating {-1,NULL} in an enum parameter list.
Jeremy Allison [Wed, 17 Dec 1997 04:56:55 +0000 (04:56 +0000)]
Missed terminating {-1,NULL} in an enum parameter list.
Jeremy.
(This used to be commit 5ea3633445d49da7a71be51e008128b3bbfaef9c)

26 years ago- handle ENOSPC in shmem init.
Andrew Tridgell [Tue, 16 Dec 1997 14:06:09 +0000 (14:06 +0000)]
- handle ENOSPC in shmem init.
- be a little bit more friendly about grabbing semaphores
(This used to be commit 87f88708939a3b72b26716a0d6648c4ea2d14047)

26 years agopreparing for release of 1.9.18alpha13
Samba Release Account [Tue, 16 Dec 1997 12:35:10 +0000 (12:35 +0000)]
preparing for release of 1.9.18alpha13
(This used to be commit 90b8675b88aa01ae912b5c8849ffb406ad976b95)

26 years agoAdded 'missing feature' section for Chris.
Samba Release Account [Tue, 16 Dec 1997 12:26:45 +0000 (12:26 +0000)]
Added 'missing feature' section for Chris.
Jeremy.
(This used to be commit a66c7ce2219d136205a7b355144be2c45ab88aba)

26 years agoWHATSNEW.txt - updated for 1.9.18alpha13.
Jeremy Allison [Tue, 16 Dec 1997 12:21:39 +0000 (12:21 +0000)]
WHATSNEW.txt - updated for 1.9.18alpha13.
docs/smb.conf.5: Removed unused NTDOMAIN params. Added new params.
source/loadparm.c: Put #ifdef NTDOMAIN around unused params.
source/nmbd_become_lmb.c: Removed check for workgroup name in lmb name.
Jeremy.
(This used to be commit 5136c5ec119968b39e2cf9d7f3e6836d9286a51f)

26 years agoAdded new wins & lm announce options.
Jeremy Allison [Tue, 16 Dec 1997 11:32:24 +0000 (11:32 +0000)]
Added new wins & lm announce options.
Jeremy.
(This used to be commit 847506a755fac3f97274a19c8a02a2a22f82ca13)

26 years agoAdded Lanman announce patch from Jacco de Leeuw <leeuw@wins.uva.nl>.
Jeremy Allison [Tue, 16 Dec 1997 09:20:34 +0000 (09:20 +0000)]
Added Lanman announce patch from Jacco de Leeuw <leeuw@wins.uva.nl>.
Also added code to stop old Samba servers that announce the workgroup
name as master browser name when they are a local master browser.
Jeremy.
(This used to be commit 3605da055737e2cc0fbfffe7772721943a5be8bd)

26 years agonmbd_incomingdgrams.c: Fix bug with Syntax 5.1 servers reported by SGI where
Jeremy Allison [Tue, 16 Dec 1997 07:30:25 +0000 (07:30 +0000)]
nmbd_incomingdgrams.c: Fix bug with Syntax 5.1 servers reported by SGI where
they do host announcements to LOCAL_MASTER_BROWSER_NAME<00> rather than
WORKGROUP<1d>.
nmbd_incomingrequests.c: Deal with WINS_PROXY_NAME issues - don't reply
with that name if it's the same broadcast net.
nmbd_serverlistdb.c: Stopped writing "Unknown" for local master browsers
we don't know.
nmbd_winsproxy.c: Deal with WINS_PROXY_NAME issues - don't reply
with that name if it's the same broadcast net.
Jeremy.
(This used to be commit 5adfff94c9020bd57f84ccbc8fba5b1d8d1615af)

26 years agofix bug in log file specification
Herb Lewis [Tue, 16 Dec 1997 05:15:00 +0000 (05:15 +0000)]
fix bug in log file specification
(This used to be commit 9b77a642bd302b7aea2147d1cbcd61e310ccfd91)

26 years agogive out file handles differently on each new connection because of a
Andrew Tridgell [Sun, 14 Dec 1997 18:45:51 +0000 (18:45 +0000)]
give out file handles differently on each new connection because of a
common bug in MS clients where they try to reuse a file descriptor
from an earlier smb connection. This code increases the chance that
the errant client will get an error rather than causing corruption
(This used to be commit 677d7a5a13728d8207dd2e7092c98d026d2d4f3c)