1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

3576 Commits

Author SHA1 Message Date
Andrew Tridgell
55fa1630e4 some updates to the process logon code to reflect lukes latest
research plus some cleanups
(This used to be commit 1682faa1b0e95fc5acdf9b10da80a6515f8772cd)
2000-04-11 14:11:14 +00:00
Andrew Tridgell
5f6ccc608f new prototypes
(This used to be commit be7ecd0977734174645c1389836a657f62375db8)
2000-04-11 13:56:59 +00:00
Andrew Tridgell
2fa922611b finally got sick of the "extern int Client" code and the stupid
assumption that we have one socket everywhere

while doing so I discovered a few bugs!

1) the clientgen session retarget code if used from smbd or nmbd would
cause a crash as it called close_sockets() which closed our main
socket! fixed by removing close_sockets() completely - it is unnecessary

2) the caching in client_addr() and client_name() was bogus - it could
easily get fooled and give the wrong result. fixed.

3) the retarget could could recurse, allowing an easy denial of
service attack on nmbd. fixed.
(This used to be commit 5937ab14d222696e40a3fc6f0e6a536f2d7305d3)
2000-04-11 13:55:53 +00:00
Andrew Tridgell
03630a9aa9 added a cheap and nasty skip_unibuf() fn to allow easier merging from
TNG

out unicode string handling functions need a lot of work
(This used to be commit 707401fc1e697362cdaadcfaac4edc964b80b1a0)
2000-04-11 13:47:17 +00:00
Andrew Tridgell
cdf223083f two minor bugfixes for SCO UnixWare. The first is to catch SIGPIPE so that putmsg() inside their send() doesn't kill swat and the scond is to open /dev/null to replace stdin after we close that
(This used to be commit d35bbe56bc9e3e5896b2ebdf33ff6468a0432e1f)
2000-04-11 07:14:12 +00:00
Jean-François Micouleau
416fa5377b added checks to open both \\server\printer and \\server\share.
it doesn't work, the getprinter level 0 reply is wrong...

	J.F.
(This used to be commit a7b09e3e11dc66779ee50524ebe1f6687ec744c6)
2000-04-10 21:47:46 +00:00
Jeremy Allison
4379d359a8 Fix for soft quotas not being set from
Norbert Pschel <Pueschel.Norbert@Walzbarren-VAW.ne.uunet.de>
Jeremy.
(This used to be commit 5480ecf24bc7c97f25a5a6aee7e24eba7e87a458)
2000-04-10 21:02:45 +00:00
Andrew Tridgell
2733f5352a initialise fsp->fd to -1
(This used to be commit 5257ff5d67632922a64266ad2ce5d5a38c701cbc)
2000-04-10 13:12:04 +00:00
Andrew Tridgell
1e66881a0c new prototypes
(This used to be commit d9130377b297a7a12e953e11bf5d484d48e772e0)
2000-04-10 13:08:25 +00:00
Andrew Tridgell
689ec46450 the bulk of the changes to get rid of fd_ptr and move print open
handling to printing/printing.c

most of this was just replacing things like fsp->fd_ptr->fd with fsp->fd

the changes in open.c are quite dramatic. Most of it is removing all
the functions that handled the fd multiplexing
(This used to be commit d1827a3648009fd0a0d165055015d9aeda7a1037)
2000-04-10 13:05:23 +00:00
Andrew Tridgell
c3043695ae rather than doing print file open processing in open.c we now handle
it in print_open_file()

that removes a lot of special cases in open.c and makes the print
handling code much easier to understand.

there is still lots to do in printing.c, but this at least gets
printing separated from the mainline code
(This used to be commit e064422af335cd791752a2b54a17a13467ace041)
2000-04-10 13:00:12 +00:00
Andrew Tridgell
b36ea9a7e1 the first of a bunch of changes to code with getting rid of the fd_ptr
element in the fsp

pretty mechanical stuff, but it affects lots of files.
(This used to be commit 368b0bc1b122ece18d11854c1506517816a01a82)
2000-04-10 12:58:14 +00:00
Andrew Tridgell
c7d3912eba got rid of the file_fd_struct structure completely.
With the new br_lock() code we no longer need the fd multiplexing,
which is great because it was really horrible :)

Moved the dev, inode and delete_on_close elements into the fsp.

A nice side effect is that this has greatly simplified open.c
(This used to be commit c3b61b33272e7b164d3b3ac4777036848c262e93)
2000-04-10 12:57:05 +00:00
Andrew Tridgell
df72a6aedc removed the read prediction code from the head branch. I think the
idea is fundamentally flawed anyway and it has been disabled for a
long time.
(This used to be commit 08de67ced40d563ee468f40faa81a88f12a1ecc1)
2000-04-10 12:54:18 +00:00
Andrew Tridgell
001765501e split out the lpq parsing code into a separate file
printing/lpq_parse.c

getting ready for the new printing backend
(This used to be commit 0ec1072e0143952139be64e8001582eadcc9f60e)
2000-04-10 03:09:42 +00:00
Andrew Tridgell
d97c3e4591 don't echo warning messages twice
(This used to be commit 64a3fd2bc5d84494a4aba044dc73ece4ef82dcd5)
2000-04-10 02:57:54 +00:00
Andrew Tridgell
f4274fe897 utmp compile fix from peter@cadcamlab.org
(This used to be commit c0562a02c345c3eb7d9a26b85bef454355023ba3)
2000-04-10 02:44:06 +00:00
Jeremy Allison
aac823aca1 Modified interfaces and added checks around *all* *alloc calls
so that errors are returned on memory allocation failure.
Jeremy.
(This used to be commit 9a118cd4a2b03146b341eeffb62144a2d29b574c)
2000-04-06 22:48:53 +00:00
Jean-François Micouleau
154596cae5 filled the architecture table (useless for the moment).
fixed GetJob.

	J.F.
(This used to be commit 3fea49e1d896987c54187cb326607284810fcb0d)
2000-04-06 16:23:04 +00:00
Tim Potter
b61dc7f051 fsync() returns an int rather than void.
(This used to be commit 26972823cf66aa8c4e61af9b208707c11c8b8ac6)
2000-04-05 22:42:26 +00:00
Tim Potter
bfbbd1ad9d Added *.so
(This used to be commit e6d11483e2187d8f794f38f5687758f2a2f0b0e6)
2000-04-05 22:42:06 +00:00
Tim Potter
a5ef1a71aa Improved clean target.
(This used to be commit facdfd319de59be4dd9b500202d33a2f3853c2c6)
2000-04-05 22:41:42 +00:00
Jeremy Allison
d598f54c52 JF - you might want to look at this patch.
Went through and fixed up all failure possibilities. If something (malloc,
file open etc.) fails, then this code goes through and cleans up all allocated
resources on exit. This is the equivalent of a C++ destuctor for the allocated
structures. We need code to be written like this to pass purify tests.

Jeremy.
(This used to be commit b260ef7cb1fb2b1e4661cc54eab403eb01fbfc35)
2000-04-05 19:48:06 +00:00
Jean-François Micouleau
974cf7d7c9 off by one error ...
J.F.
(This used to be commit cef44398f90f670358f2ad430056371d394c7f91)
2000-04-05 17:53:45 +00:00
Jean-François Micouleau
dc2d1544b3 changed all the status code to ERROR_xxx instead of NT_STATUS_xx which are
wrong in the spoolss case.

fxed a bug in the job notify code (that's the polite answer), the truth is
different: there is a bug in the NT spooler service, including SP6a and
NT2K.

changed the default lpcommand in the LPRNG case.

	J.F.
(This used to be commit 396f73c11b29a47650b3243fef0825252a3cef9b)
2000-04-05 10:05:32 +00:00
Jeremy Allison
6fc9ba3df7 Added strerror at debug level 0 on file create/open fail. Helps catch
problems.
Jeremy.
(This used to be commit a25891f52491a3aed89302704ba24df832aedf0b)
2000-04-05 01:26:52 +00:00
Jeremy Allison
2d15c34f4f Change to vfs API. POSIX states fsync should return an int, not a void.
Jeremy.
(This used to be commit 6c442d68afae4140e28b770343a900b5ce510b4a)
2000-04-04 18:44:04 +00:00
Jeremy Allison
9d5ddab766 Removed strange optimisation (paranoia fix maybe ?) that stopped smbd
from returning '.' and '..' in a top level listing of a trans2 directory
scan. NT does return these entries.
Jeremy.
(This used to be commit 7325059a0940909ddd98b32d62423700545ef87e)
2000-04-04 01:13:54 +00:00
Tim Potter
16d53e8752 Snuck in some whitespace cleanup while I was visiting these files. (-:
(This used to be commit f249dc041f3f3bdb1adaa41271236ffdb2447475)
2000-04-04 00:36:19 +00:00
Tim Potter
ba0a53b52c Removed unused parameter vuid from rpc_server api_* calls. For the very few
functions that need to access the vuid, it can be obtained from the
current_user global.

Did some whitespace cleanup.
(This used to be commit 738b307bd7053ede369431da7b1349befaa523d9)
2000-04-04 00:35:34 +00:00
Jeremy Allison
d6981c2d3a Fix for compiler warning about invalid structure type.
jeremy.
(This used to be commit 58a16e2718e6400fe9f20d61990818f2d146042f)
2000-04-03 23:06:03 +00:00
Jeremy Allison
576c970aa0 Hmmm - unicode codepages need adding to HEAD. Thought that'd been done ?
Jeremy.
(This used to be commit efbb327ff94aeb4ee18a73b169007dfe8a139b02)
2000-04-03 22:50:33 +00:00
Jeremy Allison
68b1382ae2 Fix for spoolss code from Alan Hourihane <Alan.Hourihane@pinacl.co.uk>.
Jeremy.
(This used to be commit 33aa541e89ebe2e6a7c1808cea6dc7128bdb0587)
2000-04-03 18:05:33 +00:00
Jeremy Allison
a49d86ccc1 Additional fix for nmbd and 127.0.0.1 interface.
Jeremy.
(This used to be commit 715fa7ea8cf00d72c868bed420c28a29011f53a1)
2000-04-03 17:12:25 +00:00
Herb Lewis
42796c4347 fixes for broken IRIX header file merged from 2.0 branch
(This used to be commit 351b25727e69864f06f363c1fce1ab04f3f2ca77)
2000-03-31 22:30:13 +00:00
Jeremy Allison
15bb28ccd2 IRIX include fixes.
Jeremy.
(This used to be commit 3a39acd3535647b0f28f51eea29573d5cb1eb9be)
2000-03-31 20:44:55 +00:00
Jeremy Allison
0c4e40b163 samba-bugs -> samba.
Jeremy.
(This used to be commit 8fb9843c40d5e8942006089e61dc9e709c9c8cc6)
2000-03-30 22:19:35 +00:00
Jeremy Allison
6b201d043a Fix for coredump in testparm.
Jeremy.
(This used to be commit c4c06650dd2407919213e5393ae501815a10c4f5)
2000-03-30 20:32:33 +00:00
Tim Potter
772ab755cd Fixed spelling of Andrew's name. (-:
(This used to be commit b912fb7dd239ce18a9b2e4ffaf1785d32899dc9f)
2000-03-30 06:42:34 +00:00
Andrew Tridgell
3daa0cf86f I finally got sick of configure being run automaticaly when I run make
clean or in other situations. That then screws up options I pass to
configure and is generally annoying.

Instead the Makefile now emits a warning if configure needs
rerunning, but doesn't actually run it.

don't re-enable the auto running of configure on pain of death :)
(This used to be commit ea769a280fa85b09463f6bb6e5fc9eaba5641a62)
2000-03-30 00:34:15 +00:00
Jeremy Allison
332013e09e Added check for LL suffix to long long ints needed by AIX 4.3.x compiler
to allow successful build.
Jeremy.
(This used to be commit 567713a07c089ab3ebb4c9b96087777de154b601)
2000-03-29 23:03:48 +00:00
Jeremy Allison
0d9d264625 Fixed bug found by JF where if the amount of data to return in the prs_struct
was small enough to pass the SMBtrans max data test we weren't setting the
"more data needed" error. I was fogetting the RPC_HEADER_LEN.... I now
check the correct length (current pdu staging area length). More printer
spool enum stuff works now. This bug does not affect TNG.
Jeremy.
(This used to be commit 1c9d2c016a78b0ed11dc68adeabb709903444837)
2000-03-29 22:19:58 +00:00
Jeremy Allison
9966573076 Cause nmbd to ignore loopback interface when constructing its interface list. This is done by default when interfaces are probed, but if someone
explicitly adds 127.0.0.1 to the interfaces line for smbd, then nmbd would
start to try and register names on it. This was not good :-(.
Jeremy.
(This used to be commit cc3ad825214686ad03dd4176d0c55290d1de6221)
2000-03-29 21:30:52 +00:00
Jean-François Micouleau
c475ab51d9 split addprinterex in preparation for level 1 support and to stop it
coredump.

	J.F.
(This used to be commit aea47dee7d85310f35309ecfa91d0b87e632a33f)
2000-03-29 14:49:05 +00:00
Jean-François Micouleau
6ca0ed9baa rewrote getprinterdriver level 3, now correctly handle the dependent
files.
A number of memleak fixed
some error return values fixed.

	J.F.
(This used to be commit c212fbe009fe556d5329b5d7106159cf21402d82)
2000-03-29 12:36:44 +00:00
Tim Potter
84b16407bf More Japanese filename fixes wrt VFS code from
Tomoki AONO <aono@cc.osaka-kyoiku.ac.jp>
(This used to be commit a9b628ebaa90e464366d0284226753f31439af9f)
2000-03-29 07:44:23 +00:00
Andrew Tridgell
1bb5664127 damn, the test was the wrong way around for short_resuest
(This used to be commit 1ac46c40118fce9443141ce19506d124a873b73d)
2000-03-28 03:03:34 +00:00
Jeremy Allison
b546035ba8 Win2k will only accept volume labels in UNICODE. Fixed.... :-(.
Jeremy.
(This used to be commit 676db02f1cd7cb81c58cbbdd3bc94da17dad5227)
2000-03-28 02:38:59 +00:00
Jeremy Allison
aaa8aadd35 Moved common code to set parameter offset field correctly oout of 'if'
statement into main function code path.
Jeremy.
(This used to be commit f15ca0d9273d718534ba2fdd2ccd14ab90a95c8b)
2000-03-28 02:20:57 +00:00
Jeremy Allison
0583c25087 Fixed crash bug in new handle_netbios_name code.
Jeremy.
(This used to be commit 26963f2f8ec923991efecf6ac177fb17e7a924b0)
2000-03-27 20:25:34 +00:00