24 years ago-N option still prompted for password in smbclient -L usage
Herb Lewis [Thu, 26 Feb 1998 20:41:05 +0000 (20:41 +0000)]
-N option still prompted for password in smbclient -L usage
(This used to be commit 140fba461bc22f26055c13b04a084d2df16ac604)

24 years agoFix for NT redirector bug where deltree fails if the resume key
Jeremy Allison [Thu, 26 Feb 1998 19:53:55 +0000 (19:53 +0000)]
Fix for NT redirector bug where deltree fails if the resume key
indexes are changed between directory scans. This fix does what
NT4.x SP3 does in that it stops using resume keys and returns
zero instead. We now use the filename in findnext to continue
the search in the correct place (as NT does).
(This used to be commit b813fb22c4c1b0ee48667e99e82434d20266bbf2)

24 years agoCode to work around a bug in FTP OnNet software NBT implementation.
Jeremy Allison [Thu, 26 Feb 1998 19:26:18 +0000 (19:26 +0000)]
Code to work around a bug in FTP OnNet software NBT implementation.
They do a broadcast name release for WORKGROUP<0> and WORKGROUP<1e>
names and *don't set the group bit*.

(This used to be commit 1feb54e1ba27ab8aba2df4ebef4df010ca980f12)

24 years agoFixed bug reported by When used in broadcast
Jeremy Allison [Tue, 24 Feb 1998 20:05:39 +0000 (20:05 +0000)]
Fixed bug reported by When used in broadcast
only mode nmbd was not reporting WORKGROUP<0> and WORKGROUP<1e> names
to a unicast node status query (although it was registering these names
on the network). Also tidied up code in nmbd_mynames.c so that all
known IP addresses are registered in the unicast subnet in this case
rather than just the first, as was previously done.
(This used to be commit eb71c5edcbb983ed4a1b0f57139bd66b671c67fa)

24 years agoFixed bug where second response message was being printed with the
Jeremy Allison [Tue, 24 Feb 1998 18:46:47 +0000 (18:46 +0000)]
Fixed bug where second response message was being printed with the
wrong IP address. This confused a lot of people (including me :-).
(This used to be commit 0f4080d3f076db58917d13787a282e96ba59a053)

24 years agonmbd_incomingdgrams.c: Fix for typo.
Jeremy Allison [Tue, 24 Feb 1998 17:59:34 +0000 (17:59 +0000)]
nmbd_incomingdgrams.c: Fix for typo.
nmbd_sendannounce.c: Remote announcement was announcing to the wrong name !
nmblookup.c: Fix for substitutions not seeing hostname.
testparm.c: Fix for substitutions not seeing hostname.
wsmbstatus.c: Fix for substitutions not seeing hostname.
util.c: Change read_udp_socket to use sockaddr_in rather than dubiously
messing around with an opaque data type (sockaddr).
(This used to be commit 776ccf5c0641b5aa300236c2612b5f2761d1179f)

24 years agonmbd_packets.c: nmbd_subnetdb.c: Patch from Andrey Alekseyev <fetch@muffin.arcadia...
Jeremy Allison [Fri, 20 Feb 1998 19:48:01 +0000 (19:48 +0000)]
nmbd_packets.c: nmbd_subnetdb.c: Patch from Andrey Alekseyev <>
to fix the fact that retransmit_or_expire_response_records() wasn't looking
at the WINS subnet.
server.c: Patch from to add %p (NIS server path) substitution.
smbpass.c: Fix to stop parsing failing on non-valid lines.
trans2.c: Fix for volume serial number code.
util.c:  Patch from to add %p (NIS server path) substitution.
         Fix for warnings under RH5. gcc 2.8.
(This used to be commit e58ab3bbe6e939ba678ad5482e58e0191c8dcbcb)

24 years agoFix to make us compile cleanly with gcc 2.8.
Jeremy Allison [Sat, 14 Feb 1998 14:32:36 +0000 (14:32 +0000)]
Fix to make us compile cleanly with gcc 2.8.
(This used to be commit 0a535680077a9e436362fd7f1711f62b35317fa4)

24 years agoSometime after 1.9.17p5 smbclient stopped being able to do
Jeremy Allison [Sat, 14 Feb 1998 07:11:46 +0000 (07:11 +0000)]
Sometime after 1.9.17p5 smbclient stopped being able to do
NetBIOS name lookups by broadcast and instead only does DNS.
With the belief that this was not what was intended (I think
it happened in the clientutil.c cleanup) I have added that
capability back to smbclient by adding the #define USENMB
into clientutil.c, and adding the required namequery.o into
the object lists for smbclient and smbmount (as they now
need it to link).
If this was done intentionally let me know and I'll back
this out.
(This used to be commit 1da47e79d3055468b03f496982af0fb836d91f8c)

24 years agoFix for crash bug with amanda - from "Michael C. Povel" <>.
Jeremy Allison [Fri, 13 Feb 1998 12:40:23 +0000 (12:40 +0000)]
Fix for crash bug with amanda - from "Michael C. Povel" <>.
(This used to be commit 735adfa01b7b2e540bb5476a77d6b689ca70852a)

24 years agoUpdated - removed "win95 bug compatibility" and added "dos filetime resolution".
Jeremy Allison [Fri, 13 Feb 1998 07:13:52 +0000 (07:13 +0000)]
Updated - removed "win95 bug compatibility" and added "dos filetime resolution".
(This used to be commit 7ca827b6eaf948d57b8aefb09c6818371e1cd65b)

24 years agoDing-dong the witch is dead, the witch is dead......
Jeremy Allison [Fri, 13 Feb 1998 07:11:58 +0000 (07:11 +0000)]
Ding-dong the witch is dead, the witch is dead......
This is the checkin that fixes the infamous Visual C++ 'file
has changed' bug.
I feel *SO* good about that :-).
charset.c: Added (void) to fix Herb's fussy compiler.
loadparm.c: Removed "win95 bug compatibility" (didn't
            like it much anyway :-). Added "dos filetime resolution"
reply.c: Added the 2 second timestamp resolution fix that the song above is about.
time.c: Removed unneeded get_access_time() function.
trans2.c : Removed unneeded "win95 bug compatibility" code.
(This used to be commit 10d628e4aeaecc573de27e251fec7b91844cba40)

24 years agomake the initial logfile names consistent. This should mean that smbd
Andrew Tridgell [Thu, 12 Feb 1998 14:57:55 +0000 (14:57 +0000)]
make the initial logfile names consistent. This should mean that smbd
starts with log.smb and nmbd starts with log.nmb. It also gets rid of
the "log." when using the log.%m construct as %m expands to smb before
a client connects.
(This used to be commit b7712a0a6d0afeef6239d5af61cba677eebb247b)

24 years agoAdded fix for doing pq command (from "James J. Szinger" <>).
Jeremy Allison [Thu, 12 Feb 1998 11:59:55 +0000 (11:59 +0000)]
Added fix for doing pq command (from "James J. Szinger" <>).
(This used to be commit 7123405d6351cf6457adb1199dab3c6416bf9865)

24 years agoENCRYPTION.txt: Fixed typo.
Jeremy Allison [Thu, 12 Feb 1998 07:17:07 +0000 (07:17 +0000)]
ENCRYPTION.txt: Fixed typo.
Support.txt: Added consultant.
smb.conf.5: Updated with new parameters.
(This used to be commit 71c70cf090b749827ae4186a6d389864708b7899)

24 years agoremoved old unused test
Herb Lewis [Wed, 11 Feb 1998 11:38:09 +0000 (11:38 +0000)]
removed old unused test
(This used to be commit 88247f23c6b6f3a7972cee3ffc3a0f8d15a899e2)

24 years agofixed typo
Andrew Tridgell [Wed, 11 Feb 1998 11:25:04 +0000 (11:25 +0000)]
fixed typo
(This used to be commit a083cef78ba235cde22453d763a7f8caca8bbe58)

24 years agoMakefile: Added AIX 3.2.5.
Jeremy Allison [Wed, 11 Feb 1998 11:07:14 +0000 (11:07 +0000)]
Makefile: Added AIX 3.2.5.
loadparm.c: Added "win95 bug compatibility" parameter.
local.h: Replaced MAX_OPEN_FILES back to 100 from 10 (oops).
reply.c: Fixed ulogoff check against uid - changed to vuid.
server.c: Changed file struct save of uid - changed to vuid.
smb.h: Changed id in struct current_user to vuid.
       Changed file struct uid to vuid.
time.c: Added "win95 bug compatibility" atime -> mtime return.
trans2.c: Added "win95 bug compatibility" fixes.
uid.c: Changed id in struct current_user to vuid - added checks
       to set/reset it.
util.c: Added code to expand environment variables.
version.h : still at 1.9.18 (head branch doesn't matter too much at present).
(This used to be commit adc903bcf59ad1664babd7f1d43675d3a75bfbc9)

24 years agoA small raft of changes, I will sync up with 1.9.18 also.
Jeremy Allison [Sat, 7 Feb 1998 12:15:20 +0000 (12:15 +0000)]
A small raft of changes, I will sync up with 1.9.18 also.
chgpasswd.c: Fixed typo in debug message.
includes.h: Fix include for aix.
kanji.c: Added cap_to_sj as inverse of sj_to_cap.
password.c: Added code for "networkstation user login" parameter.
- patch from Rob Nielsen <>.
printing.c: Added further aix printing fixes.
reply.c: Changed access time fetch to a function.
trans2.c: Changed access time fetch to a function.
time.c: Changed access time fetch to a function.
server.c: Made NT redirector workaround final.
util.c: Added debug for write_socket failing.
(This used to be commit a031404623c22d62f8de035be2239f609af08112)

24 years agoAdded Newcast - UK Consultant to Support.txt
John Terpstra [Tue, 3 Feb 1998 23:43:37 +0000 (23:43 +0000)]
Added Newcast - UK Consultant to Support.txt
(This used to be commit 3e438c8e7ac336c12d40b0be967b04b2ae6b39a5)

24 years agoRemoved Brett Worth from Support.txt as per Bug#3833
John Terpstra [Tue, 3 Feb 1998 23:37:13 +0000 (23:37 +0000)]
Removed Brett Worth from Support.txt as per Bug#3833
(This used to be commit 9afe9d8897dbc2740dbba895186614cf1f1716ce)

24 years agoserver.c: Added fix where, if all the file entries are being
Jeremy Allison [Sat, 31 Jan 1998 14:31:08 +0000 (14:31 +0000)]
server.c: Added fix where, if all the file entries are being
used, smbd tries to break an oplock to make room for another
file entry. This works well with Windows 95 that seems to keep
batch oplocks around for an arbitrarily long time.
Also changed rlimit code to ask for MAX_OPEN_FILES + 10 (if allowed) as
many systems use file descriptors for directory handles also.
(This used to be commit 1544d5a0f889d42696656fb18d2da1c1f8626b2b)

24 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)

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

24 years agoFix from Charles Hoch ( Whne there is no data
Jeremy Allison [Wed, 28 Jan 1998 13:11:58 +0000 (13:11 +0000)]
Fix from Charles Hoch ( 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.
(This used to be commit f6ee3263dac960772024bf9009ad0ddce6d8f289)

24 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)

24 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)

24 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
(This used to be commit 68ad11a7352824fea46ecbe67a3827a7ba3bcbab)

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

24 years agoFix for memory leak in loadparm.c - donated by Branko Cibej <>
Jeremy Allison [Sat, 24 Jan 1998 12:26:17 +0000 (12:26 +0000)]
Fix for memory leak in loadparm.c - donated by Branko Cibej <>
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.
(This used to be commit 0bcb00e2bad999df859fdff59ce720d34de9b1ad)

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

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

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

24 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)

24 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)

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

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

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

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

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

24 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)

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

24 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)

24 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)

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

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

24 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 <>.
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).
smbpass.c: Support for the above.
server.c: #ifdef'ed out fix for NT redirector bug.
util.c: Fix NIS bug with server name.
(This used to be commit cd9fad92d0316e5a0007ba3c5668906dc2f011f1)

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

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

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

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

24 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 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. remove - now handled by sambalp
(This used to be commit 129aab955c069206109461e31f2b0244d8586908)

24 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)

24 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)

24 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)

24 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)

24 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)

24 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)

24 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)

24 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)

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

24 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_incomingdgrams.c: Fixed userdata alignment problems.
source/mem_man/mem_man.h: added smb_ prefix to stop namespace collisions.
(This used to be commit 4c8af3bc9f43b2427609cbeecb7940b1753a9a1c)

24 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)

24 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)

24 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)

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

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

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

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

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

24 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)

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

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

24 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)

24 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)

24 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)

24 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)

24 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)

24 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)

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

24 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)

24 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)

24 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)

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

24 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)

24 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)

24 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)

24 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)

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

24 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)

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

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

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

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

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

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

24 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)

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

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

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