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

3478 Commits

Author SHA1 Message Date
Andrew Tridgell
0da440c8fe add a comment -
Andrew Tridgell
7969f4dccb add an align4() function -
Andrew Tridgell
1682faa1b0 some updates to the process logon code to reflect lukes latest
research plus some cleanups
-
Andrew Tridgell
be7ecd0977 new prototypes -
Andrew Tridgell
5937ab14d2 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.
-
Andrew Tridgell
707401fc1e added a cheap and nasty skip_unibuf() fn to allow easier merging from
TNG

out unicode string handling functions need a lot of work
-
Andrew Tridgell
d35bbe56bc 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 -
Jean-François Micouleau
a7b09e3e11 added checks to open both \\server\printer and \\server\share.
it doesn't work, the getprinter level 0 reply is wrong...

	J.F.
-
Jeremy Allison
5480ecf24b Fix for soft quotas not being set from
Norbert Pschel <Pueschel.Norbert@Walzbarren-VAW.ne.uunet.de>
Jeremy.
-
Andrew Tridgell
5257ff5d67 initialise fsp->fd to -1 -
Andrew Tridgell
d9130377b2 new prototypes -
Andrew Tridgell
d1827a3648 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
-
Andrew Tridgell
e064422af3 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
-
Andrew Tridgell
368b0bc1b1 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.
-
Andrew Tridgell
c3b61b3327 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
-
Andrew Tridgell
08de67ced4 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.
-
Andrew Tridgell
0ec1072e01 split out the lpq parsing code into a separate file
printing/lpq_parse.c

getting ready for the new printing backend
-
Andrew Tridgell
64a3fd2bc5 don't echo warning messages twice -
Andrew Tridgell
c0562a02c3 utmp compile fix from peter@cadcamlab.org -
Jeremy Allison
9a118cd4a2 Modified interfaces and added checks around *all* *alloc calls
so that errors are returned on memory allocation failure.
Jeremy.
-
Jean-François Micouleau
3fea49e1d8 filled the architecture table (useless for the moment).
fixed GetJob.

	J.F.
-
Tim Potter
26972823cf fsync() returns an int rather than void. -
Tim Potter
e6d11483e2 Added *.so -
Tim Potter
facdfd319d Improved clean target. -
Jeremy Allison
b260ef7cb1 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.
-
Jean-François Micouleau
cef44398f9 off by one error ...
J.F.
-
Jean-François Micouleau
396f73c11b 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.
-
Jeremy Allison
a25891f524 Added strerror at debug level 0 on file create/open fail. Helps catch
problems.
Jeremy.
-
Jeremy Allison
6c442d68af Change to vfs API. POSIX states fsync should return an int, not a void.
Jeremy.
-
Jeremy Allison
7325059a09 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.
-
Tim Potter
f249dc041f Snuck in some whitespace cleanup while I was visiting these files. (-: -
Tim Potter
738b307bd7 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.
-
Jeremy Allison
58a16e2718 Fix for compiler warning about invalid structure type.
jeremy.
-
Jeremy Allison
efbb327ff9 Hmmm - unicode codepages need adding to HEAD. Thought that'd been done ?
Jeremy.
-
Jeremy Allison
33aa541e89 Fix for spoolss code from Alan Hourihane <Alan.Hourihane@pinacl.co.uk>.
Jeremy.
-
Jeremy Allison
715fa7ea8c Additional fix for nmbd and 127.0.0.1 interface.
Jeremy.
-
Herb Lewis
351b25727e fixes for broken IRIX header file merged from 2.0 branch -
Jeremy Allison
3a39acd353 IRIX include fixes.
Jeremy.
-
Jeremy Allison
8fb9843c40 samba-bugs -> samba.
Jeremy.
-
Jeremy Allison
c4c06650dd Fix for coredump in testparm.
Jeremy.
-
Tim Potter
b912fb7dd2 Fixed spelling of Andrew's name. (-: -
Andrew Tridgell
ea769a280f 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 :)
-
Jeremy Allison
567713a07c Added check for LL suffix to long long ints needed by AIX 4.3.x compiler
to allow successful build.
Jeremy.
-
Jeremy Allison
1c9d2c016a 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.
-
Jeremy Allison
cc3ad82521 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.
-
Jean-François Micouleau
aea47dee7d split addprinterex in preparation for level 1 support and to stop it
coredump.

	J.F.
-
Jean-François Micouleau
c212fbe009 rewrote getprinterdriver level 3, now correctly handle the dependent
files.
A number of memleak fixed
some error return values fixed.

	J.F.
-
Tim Potter
a9b628ebaa More Japanese filename fixes wrt VFS code from
Tomoki AONO <aono@cc.osaka-kyoiku.ac.jp>
-
Andrew Tridgell
1ac46c4011 damn, the test was the wrong way around for short_resuest -
Jeremy Allison
676db02f1c Win2k will only accept volume labels in UNICODE. Fixed.... :-(.
Jeremy.
-