| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
read-only open on a directory was done and return an EISDIR from open_file().
Changed interface to fd_close to return error.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
| |
include/includes.h: Added SMB_BIG_UINT_BITS.
lib/util.c: Removed align2/align4 - use macros.
libsmb/namequery.c: Use ALIGN2.
locking/locking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T.
Needed to move to hiding POSIX locks at a lower layer.
nmbd/nmbd_processlogon.c: Use ALIGN2/ALIGN4 macros.
smbd/blocking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T.
smbd/reply.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T.
Jeremy.
|
| |
|
| |
|
| |
|
|
|
|
| |
research plus some cleanups
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
TNG
out unicode string handling functions need a lot of work
|
|
|
|
| |
putmsg() inside their send() doesn't kill swat and the scond is to open /dev/null to replace stdin after we close that
|
|
|
|
|
|
| |
it doesn't work, the getprinter level 0 reply is wrong...
J.F.
|
|
|
|
|
| |
Norbert Püschel <Pueschel.Norbert@Walzbarren-VAW.ne.uunet.de>
Jeremy.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
element in the fsp
pretty mechanical stuff, but it affects lots of files.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
idea is fundamentally flawed anyway and it has been disabled for a
long time.
|
|
|
|
|
|
| |
printing/lpq_parse.c
getting ready for the new printing backend
|
| |
|
| |
|
|
|
|
|
| |
so that errors are returned on memory allocation failure.
Jeremy.
|
|
|
|
|
|
| |
fixed GetJob.
J.F.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
J.F.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
problems.
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
| |
from returning '.' and '..' in a top level listing of a trans2 directory
scan. NT does return these entries.
Jeremy.
|
| |
|
|
|
|
|
|
|
| |
functions that need to access the vuid, it can be obtained from the
current_user global.
Did some whitespace cleanup.
|
|
|
|
| |
jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
| |
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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 :)
|
|
|
|
|
| |
to allow successful build.
Jeremy.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
coredump.
J.F.
|
|
|
|
|
|
|
|
| |
files.
A number of memleak fixed
some error return values fixed.
J.F.
|