gd/samba/.git
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)

26 years agoallow name_type 0x20 as well as name_type 0x0 in dns proxying
Andrew Tridgell [Sun, 14 Dec 1997 17:49:41 +0000 (17:49 +0000)]
allow name_type 0x20 as well as name_type 0x0 in dns proxying
(This used to be commit be8a40487c128947cead19a43cf2f983e9543305)

26 years agofix a bug that sometimes prevented smbclient from connecting with
Andrew Tridgell [Sun, 14 Dec 1997 17:48:55 +0000 (17:48 +0000)]
fix a bug that sometimes prevented smbclient from connecting with
protocol < LANMAN1
(This used to be commit 95ad2c284dad9c5042ac113eb7067a10531d34a1)

26 years agoThis is it ! The mega-merge of the JRA_NMBD_REWRITE branch
Jeremy Allison [Sat, 13 Dec 1997 14:16:07 +0000 (14:16 +0000)]
This is it ! The mega-merge of the JRA_NMBD_REWRITE branch
back into the main tree.
For the cvs logs of all the files starting nmbd_*.c, look
in the JRA_NMBD_REWRITE branch. That branch has now been
discontinued.
Jeremy.
(This used to be commit d80b0cb645f81d16734929a0b27a91c6650499bb)

26 years agoFixed bug reported by Gert-Jan Vons <Gert-Jan.Vons@ocegr.fr>
Jeremy Allison [Fri, 12 Dec 1997 09:10:01 +0000 (09:10 +0000)]
Fixed bug reported by Gert-Jan Vons <Gert-Jan.Vons@ocegr.fr>
with doing a dir /s into a unix directory ending in a ':'.
Jeremy.
(This used to be commit 273978b7d72955efcc0e0d9e87438b45f51c163d)

26 years agofixed over char 127 problems with isupper/islower.
Jeremy Allison [Thu, 11 Dec 1997 12:25:01 +0000 (12:25 +0000)]
fixed over char 127 problems with isupper/islower.
Jeremy.
(This used to be commit 4ac95226fff8e48a0024e2beb78df662fcfeda62)

26 years agoWhile working on a general-purpose caching module (out soon), I thought of
Christopher R. Hertel [Thu, 11 Dec 1997 11:44:18 +0000 (11:44 +0000)]
While working on a general-purpose caching module (out soon), I thought of
a better way to handle the node pointer array used in ubi_BinTree.  The
change simplified the code a bigbunch.  It also forced updates to all of
the binary tree modules.  CRH
(This used to be commit db9898559f1493ade4478196b72663759bb18995)

26 years agokanji.c: Patch from Anders Blomdell <anders.blomdell@control.lth.se>
Jeremy Allison [Thu, 11 Dec 1997 11:07:09 +0000 (11:07 +0000)]
kanji.c: Patch from Anders Blomdell <anders.blomdell@control.lth.se>
for problem with kanji sj_strXXX functions.
Jeremy.
(This used to be commit bf48151e6ddfa72303be7eac9e156046d4fb5b5e)

26 years agofix typo in directory name
Herb Lewis [Thu, 4 Dec 1997 19:17:02 +0000 (19:17 +0000)]
fix typo in directory name
(This used to be commit 2e73fc0449beabc9658b3fe869e577a868af3c0d)

26 years agoAdded one more USA consultant.
Jeremy Allison [Thu, 4 Dec 1997 18:39:08 +0000 (18:39 +0000)]
Added one more USA consultant.
Jeremy.
(This used to be commit 83c2414baf236b68f5c2461d1ecde845ec280b3f)

26 years agocatch signals in the async dns daemon and allow it to auto-restart if
Andrew Tridgell [Thu, 4 Dec 1997 10:58:40 +0000 (10:58 +0000)]
catch signals in the async dns daemon and allow it to auto-restart if
necessary
(This used to be commit fa599067f074647a5bad2ffd0fce12ae0a4e43d2)

26 years agoallow for zero size reads in asyncdns. These can happen after a signal
Andrew Tridgell [Thu, 4 Dec 1997 08:10:49 +0000 (08:10 +0000)]
allow for zero size reads in asyncdns. These can happen after a signal
(This used to be commit 8bac91a6e7a3601b093cb64e9cb3bcc1663fb4d4)

26 years agogot rid of the WRAP_MALLOC code - mem_man does it better
Andrew Tridgell [Thu, 4 Dec 1997 07:49:37 +0000 (07:49 +0000)]
got rid of the WRAP_MALLOC code - mem_man does it better
(This used to be commit d9bb3a4eba9c630370fea0fa297b176fd2afb532)

26 years agoadded optonal MEM_MAN code
Andrew Tridgell [Thu, 4 Dec 1997 07:48:06 +0000 (07:48 +0000)]
added optonal MEM_MAN code
(This used to be commit b524c8da5141e3e030e14b3a0167fa5c7ae91396)

26 years agodon't use free and alloc as structure elements
Andrew Tridgell [Thu, 4 Dec 1997 07:41:48 +0000 (07:41 +0000)]
don't use free and alloc as structure elements
(This used to be commit f7066355b00a169423b4f64f58567e19b52abc1b)

26 years agoMakefile.lib does nothing, so remove it
Andrew Tridgell [Wed, 3 Dec 1997 14:17:38 +0000 (14:17 +0000)]
Makefile.lib does nothing, so remove it
(This used to be commit 4800a02a92d9451d3bd51e7b9e366e4e60a3789e)

26 years agoslight cleanup to the linked list handling
Andrew Tridgell [Wed, 3 Dec 1997 05:54:51 +0000 (05:54 +0000)]
slight cleanup to the linked list handling
(This used to be commit 97b62b347648411d034ab91845ae607eca4dfad6)

26 years agoput the default PRINTCAP_NAME def in includes.h not local.h so that
Andrew Tridgell [Wed, 3 Dec 1997 05:22:24 +0000 (05:22 +0000)]
put the default PRINTCAP_NAME def in includes.h not local.h so that
it can see the SYSV definitions
(This used to be commit e439115366804982af6faba75714dbe2626edead)

26 years agoapplied a patch from Norm Jacobs to allow "printcap name = lpstat"
Andrew Tridgell [Wed, 3 Dec 1997 05:08:07 +0000 (05:08 +0000)]
applied a patch from Norm Jacobs to allow "printcap name = lpstat"
to use lpstat to obtain the printer list on systemV systems.

I've now made this the default on all SYSV systems.

Jeremy, you were a little worried about the security of this patch. I
believe it's OK as the user has no control over the options given to
popen() and the pipe is only open for reading.
(This used to be commit 6a83de0ae954bb18d3f15382f2b0b3259fedff09)

26 years agochange the "username map" option to allow the user to stop the
Andrew Tridgell [Wed, 3 Dec 1997 04:20:39 +0000 (04:20 +0000)]
change the "username map" option to allow the user to stop the
processing part way through the file if a match is found. If a line
starts with ! and a match is made by that line then processing
stops. This allows better wildcard handling.

(patch from Anselm.Kruis@Physik.Uni-Muenchen.DE)
(This used to be commit af57bc05fe0f248aaef329358c583abcffe1657c)

26 years agoallow local_machine and remote_machine (%L and %m macros) to contain
Andrew Tridgell [Wed, 3 Dec 1997 03:57:29 +0000 (03:57 +0000)]
allow local_machine and remote_machine (%L and %m macros) to contain
spaces
(This used to be commit 93f0619e049d1598db0c3022aeccf33910b0550f)

26 years agoloadparm.c: Added lp_we_are_a_wins_server as an alias for lp_wins_support.
Jeremy Allison [Wed, 3 Dec 1997 03:50:05 +0000 (03:50 +0000)]
loadparm.c: Added lp_we_are_a_wins_server as an alias for lp_wins_support.
Used by the new nmbd and just makes more sense :-).
Jeremy.
(This used to be commit 7a2a45eae2e9a930d3243498d4e66cc2f5e4d370)

26 years agoadd a warning if the timezone is not a multiple of 1 minute. This
Andrew Tridgell [Wed, 3 Dec 1997 03:46:43 +0000 (03:46 +0000)]
add a warning if the timezone is not a multiple of 1 minute. This
should catch broken timezone files in slackware linux.
(This used to be commit ce37bd9dcaeaf0c5e97845954342762ebaf43b10)

26 years agoallow users to disable the NetWkstaUserLogon call in server level
Andrew Tridgell [Wed, 3 Dec 1997 03:43:05 +0000 (03:43 +0000)]
allow users to disable the NetWkstaUserLogon call in server level
security by changing a setting in local.h or adding it to their
Makefile. See comment in local.h
(This used to be commit cc10fdf7583ec644850445ad96afd8b22b71e86f)

26 years agomake the "printing" option a per share option rather than global. When
Andrew Tridgell [Wed, 3 Dec 1997 03:37:02 +0000 (03:37 +0000)]
make the "printing" option a per share option rather than global. When
printing to lots of different sorts of remote printers this is useful
(This used to be commit 7a88bed4a5ca8afe1f2836f7f9a019db01bf998e)

26 years agoI'm slowly getting though the todo list :-)
Andrew Tridgell [Wed, 3 Dec 1997 03:21:25 +0000 (03:21 +0000)]
I'm slowly getting though the todo list :-)

This change allows people to select the SYSLOG_FACILITY in local.h, or
add it to the Makefile if they want to.
(This used to be commit afe88facbfb85113105bf516e066b6c1e971f6b7)

26 years agohopefully handle "ready and waiting" messages in print queue output a
Andrew Tridgell [Wed, 3 Dec 1997 03:00:49 +0000 (03:00 +0000)]
hopefully handle "ready and waiting" messages in print queue output a
little better
(This used to be commit 465edceecf86cafd225e5662b01242f87f0bd603)

26 years agofix toupper(c) on a already uppercase char and tolower(c) on an
Andrew Tridgell [Wed, 3 Dec 1997 02:27:50 +0000 (02:27 +0000)]
fix toupper(c) on a already uppercase char and tolower(c) on an
already lowercase char when using code pages. Jeremy, can you confirm
that this looks right?  It comes from PR#1992
(This used to be commit 157fde339695d3185ecf857187e981edd06a8b65)

26 years agofixed the help message for -p (someone complained!)
Andrew Tridgell [Tue, 2 Dec 1997 23:32:03 +0000 (23:32 +0000)]
fixed the help message for -p (someone complained!)
(This used to be commit c779ed654ec7d9f1fc870476a05d2294e8c0faea)

26 years agoadd the null string to SMBsetatr calls
Andrew Tridgell [Tue, 2 Dec 1997 23:30:43 +0000 (23:30 +0000)]
add the null string to SMBsetatr calls
(This used to be commit fbb2be050ded099741345a101ba13e6b12ebc823)

26 years agochanging the comment in find_new_file() to say why a base of 1 is used
Andrew Tridgell [Tue, 2 Dec 1997 23:29:57 +0000 (23:29 +0000)]
changing the comment in find_new_file() to say why a base of 1 is used
(This used to be commit 2b0f3fd14908411472be032ad09144cb71c55479)

26 years agothe default GUEST_ACCOUNT should be here not in smb.h
Andrew Tridgell [Tue, 2 Dec 1997 23:28:14 +0000 (23:28 +0000)]
the default GUEST_ACCOUNT should be here not in smb.h
(This used to be commit 13c2f432d61381a055378d303dfc8806ea4eea42)

26 years agoHPUX trusted systems need to use bigcrypt() not crypt()
Andrew Tridgell [Tue, 2 Dec 1997 23:27:40 +0000 (23:27 +0000)]
HPUX trusted systems need to use bigcrypt() not crypt()
(This used to be commit 979eaf9e9c4dd58f1371597585d4cd64841febd0)

26 years agoget rid of some things out of smb.h that are already in local.h
Andrew Tridgell [Tue, 2 Dec 1997 23:26:42 +0000 (23:26 +0000)]
get rid of some things out of smb.h that are already in local.h
(This used to be commit d55df52487ca6786f1635276b2787857a772219a)

26 years agodont try getpeername() when Client isn't initialised
Andrew Tridgell [Tue, 2 Dec 1997 23:24:26 +0000 (23:24 +0000)]
dont try getpeername() when Client isn't initialised
(This used to be commit a32ca542ad294ecc3848ca511337a8cc994d67be)

26 years agoDocumented the 'veto oplock files' parameter.
Jeremy Allison [Tue, 2 Dec 1997 19:55:44 +0000 (19:55 +0000)]
Documented the 'veto oplock files' parameter.
Jeremy.
(This used to be commit 0263f333f22d2f7f90a155ff19915ff58929bba0)

26 years agoasyncdns.c: Removed warning when compiling with -DSYNC_DNS.
Jeremy Allison [Tue, 2 Dec 1997 19:00:18 +0000 (19:00 +0000)]
asyncdns.c: Removed warning when compiling with -DSYNC_DNS.
nameelect.c: Tidied up settings of work->ServerType when unbecoming things.
nmbd.c: Fixed pidFile warning.
server.c: Fixed pidFile warning.
Jeremy.
(This used to be commit 94d53dcac5d06e48be5cea9d54625da795f62d20)

26 years agofix for systems that don't have PWD environment variable defined
Herb Lewis [Mon, 1 Dec 1997 22:49:09 +0000 (22:49 +0000)]
fix for systems that don't have PWD environment variable defined
(This used to be commit f67e21f73ffa3bbb1f3bffae709219c86be236f6)

26 years agoremove stutter from closing instructions
Herb Lewis [Mon, 1 Dec 1997 15:21:23 +0000 (15:21 +0000)]
remove stutter from closing instructions
(This used to be commit 358fcbf2e4ca274d7ef34e3cac0bc7fd72732ec5)

26 years agodded error checking to scripts
Herb Lewis [Mon, 1 Dec 1997 14:50:52 +0000 (14:50 +0000)]
dded error checking to scripts
(This used to be commit b7e1265f106010e03d92575f4578162ec659994b)

26 years agothe logon script example should use %U.bat not %u.bat
Andrew Tridgell [Sun, 30 Nov 1997 05:46:33 +0000 (05:46 +0000)]
the logon script example should use %U.bat not %u.bat
(This used to be commit e57275dd193d648458293b25f0cc3c7179f26536)

26 years agoclientgen.c: Added cli_mv() (used in a recent torture test).
Jeremy Allison [Sun, 30 Nov 1997 02:58:34 +0000 (02:58 +0000)]
clientgen.c: Added cli_mv() (used in a recent torture test).
reply.c: Changed reply_open_and_X to split out the oplock
request bits from core and extended and if an oplock was granted only set
the corresponding bit on reply.
server.c: Added code to dynamically allocate i/o buffers in oplock_break
(prevents recursion problems) , also made reset of sent_oplock_break
explicit.
Jeremy.
(This used to be commit 16e55ee2b8be9a4210d8cf87691cdf42373759d2)

26 years agodon't display locks for dead processes in smbstatus
Andrew Tridgell [Sat, 29 Nov 1997 13:35:09 +0000 (13:35 +0000)]
don't display locks for dead processes in smbstatus
(This used to be commit c7df484ef6d746fb1f5b53007ee04fa54e5f2223)

26 years agouse -1 not 0xffffffff in SIVALS() macros
Andrew Tridgell [Sat, 29 Nov 1997 13:29:13 +0000 (13:29 +0000)]
use -1 not 0xffffffff in SIVALS() macros

use the same process_exists() code on all systems (it's probably
faster anyway)
(This used to be commit 901b95aa77ac1ecc45823c23fb4e1d9da8dc8318)

26 years agoadded a sent_oplock_break element to Files[] as a paranoia check so we
Andrew Tridgell [Sat, 29 Nov 1997 02:40:31 +0000 (02:40 +0000)]
added a sent_oplock_break element to Files[] as a paranoia check so we
can't sent a oplock break twice on the same file.

changed some debug levels in the oplock code to level 0 so we can
track down a bug

zero the returned Files[] entry in find_free_file()

don't try to overcome client bugs in the handling of non-encrypted
passwords if in server level security mode

added paranoid null termination of password buffers

slight change to my ajt_panic() routine
(This used to be commit e360c79c9cec681c4609783019749773d3e79386)

26 years agopass the mailslot name to process_logon_packet()
Andrew Tridgell [Fri, 28 Nov 1997 05:52:31 +0000 (05:52 +0000)]
pass the mailslot name to process_logon_packet()

- fixed process_logon_packet() to always send the reply to/from the
correct netbios name (it should match the query)

- only do a NT style QUERYFORPDC if the query came in on a
NT_LOGON_MAILSLOT

Luke, can you check to see if these changes work in your branch with
NT logons?
(This used to be commit e89611985b35155770648c8f16ddd19acfb5ee13)

26 years agoget_entries is an int not a bool
Andrew Tridgell [Fri, 28 Nov 1997 05:48:48 +0000 (05:48 +0000)]
get_entries is an int not a bool
(This used to be commit 84215c9b91f3c5130b172a3bbc83c7ddd66c5cb8)

26 years agopreparing for release of 1.9.18alpha12
Samba Release Account [Fri, 28 Nov 1997 03:46:03 +0000 (03:46 +0000)]
preparing for release of 1.9.18alpha12
(This used to be commit 9cac33a13dc7c4890628436b80f6cbd8361deab2)

26 years agothere was a bug in my oplock bugfix :-)
Andrew Tridgell [Fri, 28 Nov 1997 03:39:04 +0000 (03:39 +0000)]
there was a bug in my oplock bugfix :-)

It's fixed properly now :-)
(This used to be commit a6a04b5c6cd35e4b5f4dd4522775961e6315c658)

26 years agofixed a very nasty oplock bug. We could send oplock break requests on
Andrew Tridgell [Fri, 28 Nov 1997 03:30:24 +0000 (03:30 +0000)]
fixed a very nasty oplock bug. We could send oplock break requests on
files that aren't open if the file happened to close while the oplock
was in transit. We would end up sending a oplock break request on
another random file (actually the open file that happened to have the
highest fnum). Then we wouldn't get a response, so smbd would keep
sending and would actually flood the net with an infinite number of
oplock break requests!
(This used to be commit 0da20e0aecbf3e59bdc649c489a18832403dc9b2)

26 years agooh no! my favourite hack is broken. You can't do:
Andrew Tridgell [Wed, 26 Nov 1997 23:43:06 +0000 (23:43 +0000)]
oh no! my favourite hack is broken. You can't do:

[%U]
path = %H

to get a new homes area. I wonder when it broke?

Anyway, I've fixed it. We can all rest easy now, knowing that you
really can produce an incomprehensible smb.conf and get it to work.
(This used to be commit 2245da4ad6674aa373e3057c661f5bc0315e191f)

26 years agoget rid of stat command (it is a hangover from an old experiment)
Andrew Tridgell [Tue, 25 Nov 1997 12:20:55 +0000 (12:20 +0000)]
get rid of stat command (it is a hangover from an old experiment)
(This used to be commit 8ced76c4c71c67c54bf0deedff5a7adfca04e4f3)

26 years agoRemind them to read the man page about needing to be root.
Dan Shearer [Mon, 24 Nov 1997 19:10:40 +0000 (19:10 +0000)]
Remind them to read the man page about needing to be root.
(This used to be commit 9ccd76e64d396c5c7f1da7346196476ca9a21eb8)