amitay/samba.git
26 years agoThis commit was manufactured by cvs2svn to create tag release-1-9-18p2 samba-1.9.18p2
cvs2svn Import User [Tue, 27 Jan 1998 07:48:35 +0000 (07:48 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-1-9-18p2'.

26 years agopreparing for release of 1.9.18p2
Samba Release Account [Tue, 27 Jan 1998 07:48:34 +0000 (07:48 +0000)]
preparing for release of 1.9.18p2

26 years agoWHATSNEW.txt: Added more bugfix lines.
Jeremy Allison [Tue, 27 Jan 1998 06:58:12 +0000 (06:58 +0000)]
WHATSNEW.txt: Added more bugfix lines.
Jeremy.

26 years agoasyncdns.c: Fixed shutdown bug where nmbd would hang.
Jeremy Allison [Tue, 27 Jan 1998 06:55:38 +0000 (06:55 +0000)]
asyncdns.c: Fixed shutdown bug where nmbd would hang.
nmbd_winsserver.c: Allow spaces in WINS names.
Jeremy.

26 years ago*** empty log message ***
Volker Lendecke [Mon, 26 Jan 1998 04:50:16 +0000 (04:50 +0000)]
*** empty log message ***

26 years agoUpdating all files in preparation for release of 1.9.18p2.
John Terpstra [Mon, 26 Jan 1998 00:46:23 +0000 (00:46 +0000)]
Updating all files in preparation for release of 1.9.18p2.
These changes bring Package production facilities for Red Hat Linux
4.2 and 5.0 into line.
All changes recently made to the Red Hat Linux smb.conf file now reflected
in the master smb.conf.default file.
Support change of a phone number only.
WHATSNEW updated to reflect change to smb.conf.default file.

26 years agoadded to 1.9.18 as well
Andrew Tridgell [Sun, 25 Jan 1998 15:44:34 +0000 (15:44 +0000)]
added to 1.9.18 as well
------
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!

26 years agoUpdated Manifest for 1.9.18.
Jeremy Allison [Sat, 24 Jan 1998 13:15:29 +0000 (13:15 +0000)]
Updated Manifest for 1.9.18.
Updated Roadmap for 1.9.18.
Updated WHATSNEW.txt for 1.9.18p2.
Kept Support.txt up do date.
Jeremy.

26 years agoAdded memory leak fix from Branko Cibej <branko.cibej@hermes.si>, plus
Jeremy Allison [Sat, 24 Jan 1998 12:43:53 +0000 (12:43 +0000)]
Added memory leak fix from Branko Cibej <branko.cibej@hermes.si>, plus
an extre debug message - both in free_service().
Jeremy.

26 years agoAdded the minimum time from a stat structure for create
Jeremy Allison [Sat, 24 Jan 1998 09:28:00 +0000 (09:28 +0000)]
Added the minimum time from a stat structure for create
time.
Jeremy.

26 years agoChanged code that truncates salt after 2 characters so that it becomes
Jeremy Allison [Fri, 23 Jan 1998 13:52:45 +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.

26 years agoAll: Copyright updates - THIS WILL BE ROLLED BACK to 1997 if Andrew requests !
Jeremy Allison [Fri, 23 Jan 1998 08:30:30 +0000 (08:30 +0000)]
All: Copyright updates - THIS WILL BE ROLLED BACK to 1997 if Andrew requests !
charcnv.c: Russian language updates.
chgpasswd.c: Fixed change password from NT.
ipc.c: Warning fixes, fixed change password from NT.
nmbd.c: Allowed compile with MEM_MAN and SIGUSR1.
nmbd_browsesync.c: Fix for source nbt type.
nmbd_packets.c: Fix for source nbt type.
print_svid.c: lp output processing fix.
printing.c: lprng fix.
reply.c, server.c, util.c : oplock deadlock bugfix.
smbdes.c: Fixed change password from NT.
smbpass.c: Fixed change password from NT.
make_printerdef.c: Fixed warning messages from gcc with assignment in if.
This is the merge of what is in the main branch
to the 1.9.18 branch to get ready for 1.9.18p2.
Note that if Andrew requests we will roll back
the (C) changes.
Jeremy.

26 years agoupdated to work correctly with some HP printer inf files
Herb Lewis [Fri, 23 Jan 1998 07:52:02 +0000 (07:52 +0000)]
updated to work correctly with some HP printer inf files

26 years agominor fixes to documentation
Herb Lewis [Fri, 23 Jan 1998 07:39:42 +0000 (07:39 +0000)]
minor fixes to documentation

26 years agoAdded Romanian consultant.
Jeremy Allison [Thu, 22 Jan 1998 07:34:46 +0000 (07:34 +0000)]
Added Romanian consultant.
Jeremy

26 years ago*** empty log message ***
Volker Lendecke [Thu, 22 Jan 1998 03:33:42 +0000 (03:33 +0000)]
*** empty log message ***

26 years agofixed a few typos in the instructions and added a longer explaination for
Herb Lewis [Wed, 21 Jan 1998 09:48:28 +0000 (09:48 +0000)]
fixed a few typos in the instructions and added a longer explaination for
how the printers.def entry is constructed.

26 years agofix bug with using inf files from HP for DesignJet 750C (C3195A)
Herb Lewis [Wed, 21 Jan 1998 09:20:20 +0000 (09:20 +0000)]
fix bug with using inf files from HP for DesignJet 750C (C3195A)

26 years agoAdded Italian consulting firm.
Jeremy Allison [Sat, 17 Jan 1998 11:45:05 +0000 (11:45 +0000)]
Added Italian consulting firm.
Jeremy.

26 years agoMakefile:
Jeremy Allison [Fri, 16 Jan 1998 06:39:49 +0000 (06:39 +0000)]
Makefile:
charset.c:
includes.h:
make_smbcodepage.c:
codepage_def.866: Added new codepage 866.
clientutil.c: Fixed compile bug in rarely #defined code.
pcap.c: Fixed lpstat output bug.
print_svid.c: Fix warnings.
Jeremy.

26 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn Import User [Fri, 16 Jan 1998 06:31:02 +0000 (06:31 +0000)]
This commit was manufactured by cvs2svn to create branch
'BRANCH_1_9_18'.

26 years agoAdding new codepage file.
Jeremy Allison [Fri, 16 Jan 1998 06:31:01 +0000 (06:31 +0000)]
Adding new codepage file.
Jeremy.

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.

26 years agoserver.c: Added fix to stop security=share from using vuid.
Jeremy Allison [Thu, 15 Jan 1998 05:27:35 +0000 (05:27 +0000)]
server.c: Added fix to stop security=share from using vuid.
Jeremy

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.

26 years agoREADME describe inst package version number correctly
Herb Lewis [Wed, 14 Jan 1998 07:22:54 +0000 (07:22 +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

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

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.

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

26 years agoleft out a piece of my last fix for inst package version number
Herb Lewis [Wed, 14 Jan 1998 02:46:01 +0000 (02:46 +0000)]
left out a piece of my last fix for inst package version number

26 years agopreparing for release of 1.9.18p1
Samba Release Account [Tue, 13 Jan 1998 05:47:32 +0000 (05:47 +0000)]
preparing for release of 1.9.18p1

26 years agoUpdated for 1.9.18p1 release.
Jeremy Allison [Tue, 13 Jan 1998 05:45:26 +0000 (05:45 +0000)]
Updated for 1.9.18p1 release.
Jeremy.

26 years agoAdded timestring() to overflow attack so people can see when it happens.
Jeremy Allison [Tue, 13 Jan 1998 05:39:25 +0000 (05:39 +0000)]
Added timestring() to overflow attack so people can see when it happens.
Jeremy.

26 years agofix bug in search string
Herb Lewis [Tue, 13 Jan 1998 05:08:54 +0000 (05:08 +0000)]
fix bug in search string

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

26 years agoUpdated bugfix notes for 1.9.18p1.
Samba Release Account [Mon, 12 Jan 1998 08:06:34 +0000 (08:06 +0000)]
Updated bugfix notes for 1.9.18p1.
Jeremy.

26 years agothese are johns PAM changes from the main branch - they need to be in
Andrew Tridgell [Mon, 12 Jan 1998 00:33:21 +0000 (00:33 +0000)]
these are johns PAM changes from the main branch - they need to be in
1.9.18 as well

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

26 years ago(applying fix to 1.9.18)
Andrew Tridgell [Mon, 12 Jan 1998 00:27:52 +0000 (00:27 +0000)]
(applying fix to 1.9.18)
this is a proper fix for the find_free_file/oplock bug. Files[]
elements are now marked reserved while the open is taking place and
find_free_file() does not allow a reserved file to be opened
The reservation is removed if the open fails or in close_file()

26 years ago*** empty log message ***
Andrew Tridgell [Mon, 12 Jan 1998 00:20:10 +0000 (00:20 +0000)]
*** empty log message ***

26 years ago(applying fix to 1.9.18 as well)
Andrew Tridgell [Mon, 12 Jan 1998 00:01:18 +0000 (00:01 +0000)]
(applying fix to 1.9.18 as well)
I've now found the real oplock bug (the nasty one that I'm sure has
been pestering us for a long time)
The problem is that find_free_file() doesn't reserve the file. This
means that during a recursive oplock break in an open you can get two
files opened with the same fnum (yikes!). The 2nd open wipes out the
oplock info in the Files[] structure (among other things) which
totally screws the oplock breaks.
This fix that I am applying now is a "quick fix". It will fail if the
Files[] table is full and maybe under other conditions. It isn't
really a fix at all, but it will "fix" the problem under most
conditions and will also speed things up a little so I'm applying it
anyway.
I'll see if I can do a proper fix soon.

26 years ago*** empty log message ***
Andrew Tridgell [Sun, 11 Jan 1998 23:59:11 +0000 (23:59 +0000)]
*** empty log message ***

26 years ago(fixed in 1.9.18 as well)
Andrew Tridgell [Sun, 11 Jan 1998 23:30:32 +0000 (23:30 +0000)]
(fixed in 1.9.18 as well)
fixed an oplock bug. inbuf and outbuf must not be declared static as
otherwise they can become corrupt during a recursive oplock
break. logs from PR#3005 show that we are indeed getting recursive
oplock breaks (yuck!)
I'm not totally sure that this is the only oplock bug left as I don't
quite see how it fully explains the logs. We'll know when he tries the
patch.

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

26 years agofix up the CGI headers when run as a cgi script
Andrew Tridgell [Sun, 11 Jan 1998 15:19:50 +0000 (15:19 +0000)]
fix up the CGI headers when run as a cgi script

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

26 years agoipc.c: Fixed problem where we were not returning 'buffer too small'
Jeremy Allison [Sat, 10 Jan 1998 08:11:42 +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.

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.

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.

26 years agodocs/Support.txt : Remove consultant who doesn't want to be there.
Jeremy Allison [Fri, 9 Jan 1998 05:30:39 +0000 (05:30 +0000)]
docs/Support.txt : Remove consultant who doesn't want to be there.
source/nmbd_become_lmb.c: Fixed problem with userdata alignment.
source/nmbd_browsesync.c: Fixed problem with userdata alignment.
source/nmbd_incomingdgrams.c: Fixed problem with userdata alignment.
source/mem_man/mem_man.c:
source/mem_man/mem_man.h: Added smb_ as prefix to stop namespace collisions.
Jeremy.

26 years agoadd packaging file fixes from main branch
Herb Lewis [Fri, 9 Jan 1998 04:12:35 +0000 (04:12 +0000)]
add packaging file fixes from main branch

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

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

26 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn Import User [Thu, 8 Jan 1998 06:15:49 +0000 (06:15 +0000)]
This commit was manufactured by cvs2svn to create branch
'BRANCH_1_9_18'.

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

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.

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

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.

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.

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.

26 years agoUpdated french contact address.
Jeremy Allison [Wed, 7 Jan 1998 05:34:07 +0000 (05:34 +0000)]
Updated french contact address.

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

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

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

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.

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

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

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

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.

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.

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.

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

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

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

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

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)

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.

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

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.

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

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 :~)

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

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.

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.

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.

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.

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

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.