1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

1288 Commits

Author SHA1 Message Date
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
Herb Lewis
56f87885bc fix typo in directory name
(This used to be commit 2e73fc0449beabc9658b3fe869e577a868af3c0d)
1997-12-04 19:17:02 +00:00
Jeremy Allison
75c430cf37 Added one more USA consultant.
Jeremy.
(This used to be commit 83c2414baf236b68f5c2461d1ecde845ec280b3f)
1997-12-04 18:39:08 +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
0e6a7ca2ec Documented the 'veto oplock files' parameter.
Jeremy.
(This used to be commit 0263f333f22d2f7f90a155ff19915ff58929bba0)
1997-12-02 19:55:44 +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
00b5a07744 fix for systems that don't have PWD environment variable defined
(This used to be commit f67e21f73ffa3bbb1f3bffae709219c86be236f6)
1997-12-01 22:49:09 +00:00
Herb Lewis
ceb047f601 remove stutter from closing instructions
(This used to be commit 358fcbf2e4ca274d7ef34e3cac0bc7fd72732ec5)
1997-12-01 15:21:23 +00:00
Herb Lewis
365f1eadaa dded error checking to scripts
(This used to be commit b7e1265f106010e03d92575f4578162ec659994b)
1997-12-01 14:50:52 +00:00
Andrew Tridgell
bea2394b49 the logon script example should use %U.bat not %u.bat
(This used to be commit e57275dd193d648458293b25f0cc3c7179f26536)
1997-11-30 05:46:33 +00:00
Jeremy Allison
15a6097263 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)
1997-11-30 02:58:34 +00:00
Andrew Tridgell
7da2663f0d don't display locks for dead processes in smbstatus
(This used to be commit c7df484ef6d746fb1f5b53007ee04fa54e5f2223)
1997-11-29 13:35:09 +00:00
Andrew Tridgell
ec8e33cde6 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)
1997-11-29 13:29:13 +00:00
Andrew Tridgell
cf9d07cc7d 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)
1997-11-29 02:40:31 +00:00
Andrew Tridgell
7c025b60ac 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)
1997-11-28 05:52:31 +00:00
Andrew Tridgell
7f2cd86196 get_entries is an int not a bool
(This used to be commit 84215c9b91f3c5130b172a3bbc83c7ddd66c5cb8)
1997-11-28 05:48:48 +00:00
Samba Release Account
f4e60aab71 preparing for release of 1.9.18alpha12
(This used to be commit 9cac33a13dc7c4890628436b80f6cbd8361deab2)
1997-11-28 03:46:03 +00:00
Andrew Tridgell
bca5c727af there was a bug in my oplock bugfix :-)
It's fixed properly now :-)
(This used to be commit a6a04b5c6cd35e4b5f4dd4522775961e6315c658)
1997-11-28 03:39:04 +00:00
Andrew Tridgell
f822c17d35 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)
1997-11-28 03:30:24 +00:00
Andrew Tridgell
6c158adf25 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)
1997-11-26 23:43:06 +00:00
Andrew Tridgell
e54a611dad get rid of stat command (it is a hangover from an old experiment)
(This used to be commit 8ced76c4c71c67c54bf0deedff5a7adfca04e4f3)
1997-11-25 12:20:55 +00:00
Dan Shearer
df46de4e00 Remind them to read the man page about needing to be root.
(This used to be commit 9ccd76e64d396c5c7f1da7346196476ca9a21eb8)
1997-11-24 19:10:40 +00:00
Andrew Tridgell
ebe7c7a173 added cli_rmdir and cli_mkdir
added test in smbtorture for the server updating the directory modify
time when a file is added to a directory

cleanup in smbtorture so no garbage files are left on the server
(This used to be commit 3a5e07f1e994396853e6340e8ef3f4d12bb0243e)
1997-11-24 13:44:52 +00:00