1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

961 Commits

Author SHA1 Message Date
Dan Shearer
49694879a0 Put it in the right directory :~) -
Jeremy Allison
c62aa0a760 Fixed stupid bug in read_smb_len where I was calling itself - now
calling the correct fn.
Jeremy.
-
Jeremy Allison
1084fb4682 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.
-
Jeremy Allison
209f894fdb 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.
-
Jeremy Allison
cb771b2667 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.
-
Christopher R. Hertel
45962779a6 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 -)-----
-
Jeremy Allison
bcfcc39a27 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.
-
Jeremy Allison
5ea3633445 Missed terminating {-1,NULL} in an enum parameter list.
Jeremy.
-
Andrew Tridgell
87f8870893 - handle ENOSPC in shmem init.
- be a little bit more friendly about grabbing semaphores
-
Samba Release Account
90b8675b88 preparing for release of 1.9.18alpha13 -
Jeremy Allison
5136c5ec11 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.
-
Jeremy Allison
3605da0557 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.
-
Jeremy Allison
5adfff94c9 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.
-
Andrew Tridgell
677d7a5a13 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
-
Andrew Tridgell
be8a40487c allow name_type 0x20 as well as name_type 0x0 in dns proxying -
Andrew Tridgell
95ad2c284d fix a bug that sometimes prevented smbclient from connecting with
protocol < LANMAN1
-
Jeremy Allison
d80b0cb645 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.
-
Jeremy Allison
273978b7d7 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.
-
Jeremy Allison
4ac95226ff fixed over char 127 problems with isupper/islower.
Jeremy.
-
Christopher R. Hertel
db9898559f 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
-
Jeremy Allison
bf48151e6d kanji.c: Patch from Anders Blomdell <anders.blomdell@control.lth.se>
for problem with kanji sj_strXXX functions.
Jeremy.
-
Andrew Tridgell
fa599067f0 catch signals in the async dns daemon and allow it to auto-restart if
necessary
-
Andrew Tridgell
8bac91a6e7 allow for zero size reads in asyncdns. These can happen after a signal -
Andrew Tridgell
d9bb3a4eba got rid of the WRAP_MALLOC code - mem_man does it better -
Andrew Tridgell
b524c8da51 added optonal MEM_MAN code -
Andrew Tridgell
f7066355b0 don't use free and alloc as structure elements -
Andrew Tridgell
4800a02a92 Makefile.lib does nothing, so remove it -
Andrew Tridgell
97b62b3476 slight cleanup to the linked list handling -
Andrew Tridgell
e439115366 put the default PRINTCAP_NAME def in includes.h not local.h so that
it can see the SYSV definitions
-
Andrew Tridgell
6a83de0ae9 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.
-
Andrew Tridgell
af57bc05fe 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)
-
Andrew Tridgell
93f0619e04 allow local_machine and remote_machine (%L and %m macros) to contain
spaces
-
Jeremy Allison
7a2a45eae2 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.
-
Andrew Tridgell
ce37bd9dca add a warning if the timezone is not a multiple of 1 minute. This
should catch broken timezone files in slackware linux.
-
Andrew Tridgell
cc10fdf758 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
-
Andrew Tridgell
7a88bed4a5 make the "printing" option a per share option rather than global. When
printing to lots of different sorts of remote printers this is useful
-
Andrew Tridgell
afe88facbf 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.
-
Andrew Tridgell
465edceecf hopefully handle "ready and waiting" messages in print queue output a
little better
-
Andrew Tridgell
157fde3396 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
-
Andrew Tridgell
c779ed654e fixed the help message for -p (someone complained!) -
Andrew Tridgell
fbb2be050d add the null string to SMBsetatr calls -
Andrew Tridgell
2b0f3fd149 changing the comment in find_new_file() to say why a base of 1 is used -
Andrew Tridgell
13c2f432d6 the default GUEST_ACCOUNT should be here not in smb.h -
Andrew Tridgell
979eaf9e9c HPUX trusted systems need to use bigcrypt() not crypt() -
Andrew Tridgell
d55df52487 get rid of some things out of smb.h that are already in local.h -
Andrew Tridgell
a32ca542ad dont try getpeername() when Client isn't initialised -
Jeremy Allison
94d53dcac5 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.
-
Herb Lewis
358fcbf2e4 remove stutter from closing instructions -
Jeremy Allison
16e55ee2b8 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.
-
Andrew Tridgell
c7df484ef6 don't display locks for dead processes in smbstatus -