1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

913 Commits

Author SHA1 Message Date
Jeremy Allison
d1e796d857 Fixes to compile under OpenBSD from "Todd T. Fries" <toddf@acm.org>
Jeremy.
(This used to be commit 3c9292505914e2119fa7b1973c9fbbe1742262b2)
1997-12-23 07:15:59 +00:00
Jeremy Allison
74c807fcc5 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)
1997-12-23 06:38:36 +00:00
Dan Shearer
8105ad49d5 Put it in the right directory :~)
(This used to be commit 49694879a0f96b75bb2ca5ec120a5867706afc90)
1997-12-20 23:44:25 +00:00
Jeremy Allison
6f56211721 Fixed stupid bug in read_smb_len where I was calling itself - now
calling the correct fn.
Jeremy.
(This used to be commit c62aa0a7600269c2bb13b939857716a6ee0f34c1)
1997-12-20 14:52:48 +00:00
Jeremy Allison
be71d43585 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)
1997-12-20 14:36:11 +00:00
Jeremy Allison
d57c055478 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)
1997-12-20 10:52:00 +00:00
Jeremy Allison
42e0d9a1f0 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)
1997-12-20 05:25:37 +00:00
Christopher R. Hertel
b88f43dfdb 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)
1997-12-19 09:32:58 +00:00
Jeremy Allison
b80b6ea3b4 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)
1997-12-18 11:05:00 +00:00
Jeremy Allison
efa661cb17 Missed terminating {-1,NULL} in an enum parameter list.
Jeremy.
(This used to be commit 5ea3633445d49da7a71be51e008128b3bbfaef9c)
1997-12-17 04:56:55 +00:00
Andrew Tridgell
637c3ed4a3 - handle ENOSPC in shmem init.
- be a little bit more friendly about grabbing semaphores
(This used to be commit 87f88708939a3b72b26716a0d6648c4ea2d14047)
1997-12-16 14:06:09 +00:00
Samba Release Account
59fcf14107 preparing for release of 1.9.18alpha13
(This used to be commit 90b8675b88aa01ae912b5c8849ffb406ad976b95)
1997-12-16 12:35:10 +00:00
Jeremy Allison
e9ef2a5a5e 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)
1997-12-16 12:21:39 +00:00
Jeremy Allison
16bf14adf1 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)
1997-12-16 09:20:34 +00:00
Jeremy Allison
5d4345b66d 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)
1997-12-16 07:30:25 +00:00
Andrew Tridgell
662eaecee6 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)
1997-12-14 18:45:51 +00:00
Andrew Tridgell
111245cd73 allow name_type 0x20 as well as name_type 0x0 in dns proxying
(This used to be commit be8a40487c128947cead19a43cf2f983e9543305)
1997-12-14 17:49:41 +00:00
Andrew Tridgell
edc0554f7c fix a bug that sometimes prevented smbclient from connecting with
protocol < LANMAN1
(This used to be commit 95ad2c284dad9c5042ac113eb7067a10531d34a1)
1997-12-14 17:48:55 +00:00
Jeremy Allison
64f0348a3f 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)
1997-12-13 14:16:07 +00:00
Jeremy Allison
164c9db4de 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)
1997-12-12 09:10:01 +00:00
Jeremy Allison
155562e514 fixed over char 127 problems with isupper/islower.
Jeremy.
(This used to be commit 4ac95226fff8e48a0024e2beb78df662fcfeda62)
1997-12-11 12:25:01 +00:00
Christopher R. Hertel
7735e4d586 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)
1997-12-11 11:44:18 +00:00
Jeremy Allison
419e8823e9 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)
1997-12-11 11:07:09 +00:00
Andrew Tridgell
00fc025b93 catch signals in the async dns daemon and allow it to auto-restart if
necessary
(This used to be commit fa599067f074647a5bad2ffd0fce12ae0a4e43d2)
1997-12-04 10:58:40 +00:00
Andrew Tridgell
bb97a6adac allow for zero size reads in asyncdns. These can happen after a signal
(This used to be commit 8bac91a6e7a3601b093cb64e9cb3bcc1663fb4d4)
1997-12-04 08:10:49 +00:00
Andrew Tridgell
c81a3b8a56 got rid of the WRAP_MALLOC code - mem_man does it better
(This used to be commit d9bb3a4eba9c630370fea0fa297b176fd2afb532)
1997-12-04 07:49:37 +00:00
Andrew Tridgell
500069329a added optonal MEM_MAN code
(This used to be commit b524c8da5141e3e030e14b3a0167fa5c7ae91396)
1997-12-04 07:48:06 +00:00
Andrew Tridgell
28f37efd34 don't use free and alloc as structure elements
(This used to be commit f7066355b00a169423b4f64f58567e19b52abc1b)
1997-12-04 07:41:48 +00:00
Andrew Tridgell
63a35dc8cd Makefile.lib does nothing, so remove it
(This used to be commit 4800a02a92d9451d3bd51e7b9e366e4e60a3789e)
1997-12-03 14:17:38 +00:00
Andrew Tridgell
d3046caa5c slight cleanup to the linked list handling
(This used to be commit 97b62b347648411d034ab91845ae607eca4dfad6)
1997-12-03 05:54:51 +00:00
Andrew Tridgell
e94d563239 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)
1997-12-03 05:22:24 +00:00
Andrew Tridgell
7a668a7641 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)
1997-12-03 05:08:07 +00:00
Andrew Tridgell
02bc90ea44 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)
1997-12-03 04:20:39 +00:00
Andrew Tridgell
87df23458e allow local_machine and remote_machine (%L and %m macros) to contain
spaces
(This used to be commit 93f0619e049d1598db0c3022aeccf33910b0550f)
1997-12-03 03:57:29 +00:00
Jeremy Allison
0aa493cc03 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)
1997-12-03 03:50:05 +00:00
Andrew Tridgell
2b8247dd09 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)
1997-12-03 03:46:43 +00:00
Andrew Tridgell
69460b470f 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)
1997-12-03 03:43:05 +00:00
Andrew Tridgell
11d7f4a2aa 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)
1997-12-03 03:37:02 +00:00
Andrew Tridgell
cc12fc66d1 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)
1997-12-03 03:21:25 +00:00
Andrew Tridgell
bd1abc6927 hopefully handle "ready and waiting" messages in print queue output a
little better
(This used to be commit 465edceecf86cafd225e5662b01242f87f0bd603)
1997-12-03 03:00:49 +00:00
Andrew Tridgell
3e23d79cfe 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)
1997-12-03 02:27:50 +00:00
Andrew Tridgell
1463cb1a43 fixed the help message for -p (someone complained!)
(This used to be commit c779ed654ec7d9f1fc870476a05d2294e8c0faea)
1997-12-02 23:32:03 +00:00
Andrew Tridgell
f97a49c39e add the null string to SMBsetatr calls
(This used to be commit fbb2be050ded099741345a101ba13e6b12ebc823)
1997-12-02 23:30:43 +00:00
Andrew Tridgell
a53d7c1164 changing the comment in find_new_file() to say why a base of 1 is used
(This used to be commit 2b0f3fd14908411472be032ad09144cb71c55479)
1997-12-02 23:29:57 +00:00
Andrew Tridgell
6a012a8153 the default GUEST_ACCOUNT should be here not in smb.h
(This used to be commit 13c2f432d61381a055378d303dfc8806ea4eea42)
1997-12-02 23:28:14 +00:00
Andrew Tridgell
7097597fd6 HPUX trusted systems need to use bigcrypt() not crypt()
(This used to be commit 979eaf9e9c4dd58f1371597585d4cd64841febd0)
1997-12-02 23:27:40 +00:00
Andrew Tridgell
c65bcc26f7 get rid of some things out of smb.h that are already in local.h
(This used to be commit d55df52487ca6786f1635276b2787857a772219a)
1997-12-02 23:26:42 +00:00
Andrew Tridgell
7b10574429 dont try getpeername() when Client isn't initialised
(This used to be commit a32ca542ad294ecc3848ca511337a8cc994d67be)
1997-12-02 23:24:26 +00:00
Jeremy Allison
c4aaa6bc3f 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)
1997-12-02 19:00:18 +00:00
Herb Lewis
ceb047f601 remove stutter from closing instructions
(This used to be commit 358fcbf2e4ca274d7ef34e3cac0bc7fd72732ec5)
1997-12-01 15:21:23 +00:00