1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-30 13:18:05 +03:00
Commit Graph

3491 Commits

Author SHA1 Message Date
Jeremy Allison
019bab27c8 Typo - missing '}'.
Jeremy.
(This used to be commit 0216d81f06)
2000-04-13 16:46:32 +00:00
Jeremy Allison
a018d6b326 Removed "ole locking compat" parameter (no longer used).
We now get/set/check POSIX locks, but I still need to code up the
close fd braindamage...
Jeremy.
(This used to be commit 3de058bd43)
2000-04-12 23:01:11 +00:00
Jeremy Allison
96b3bf3140 Implmented mapping of lock offset/count from 64 bit MS ranges
to either 63 or 31 bit POSIX ranges. Code to get these locks
not yet added.
Jeremy.
(This used to be commit 9c3b9146a3)
2000-04-12 21:46:22 +00:00
Jeremy Allison
8316237e9c Code to map tdb locks onto POSIX. Mainly placeholder code at the moment,
but the structure is done enough so that Andrew can look it over and give
a yea/nay decision.
Jeremy.
(This used to be commit db96f83e34)
2000-04-12 17:59:09 +00:00
Luke Leighton
f5da7470c3 logic for domainsidsize is if size is zero, there's no sid, so don't
advance over it and 4-byte align.

this _used_ to be "regardless of domainsidsize, advance by domainsidsize+3"
which is wrong.
(This used to be commit 5086e6425f)
2000-04-12 05:56:16 +00:00
Jeremy Allison
afd40c8cde Ensure that CHECK_FNUM rejects fd == -1 correctly.
Jeremy.
(This used to be commit d2fff2596a)
2000-04-12 01:25:10 +00:00
Jeremy Allison
e1083ea7df Roll back to using static MACHINE.SID after consultation with Andrew. This
code will be removed soon and a SID auto-generated from (probably) primary
hostname and never stored in a file will replace it.
Jeremy.
(This used to be commit fbfe94a799)
2000-04-12 00:37:08 +00:00
Jeremy Allison
4743965cd9 Andrew made it faster :-).
Jeremy.
(This used to be commit f2a775d3fb)
2000-04-11 23:58:53 +00:00
Jeremy Allison
a110c7ce51 Bloody typo ! It should be & 3 , & 1 *not* &~3, &~1.
Jeremy.
(This used to be commit 83734b6761)
2000-04-11 23:43:56 +00:00
Jeremy Allison
9bb3efca8a The changes made here broke NT security descriptor returning to NT clients.
We need to talk about the MACHINE.SID/<WORKGROUP_NAME>.SID mess.....
Jeremy.
(This used to be commit 5bdaa043f0)
2000-04-11 22:47:24 +00:00
Jeremy Allison
2311ecab4c The latest open() code changes broke the NT directory opens. Detect if a
read-only open on a directory was done and return an EISDIR from open_file().
Changed interface to fd_close to return error.
Jeremy.
(This used to be commit df4302f391)
2000-04-11 21:38:45 +00:00
Jeremy Allison
f6be38cae2 include/byteorder.h: ALIGN4/ALIGN2 macros.
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.
(This used to be commit 491eea8a20)
2000-04-11 19:44:54 +00:00
Andrew Tridgell
ca085145a9 prototypes
(This used to be commit 04bee56160)
2000-04-11 14:25:15 +00:00
Andrew Tridgell
420099f96f add a comment
(This used to be commit 0da440c8fe)
2000-04-11 14:25:04 +00:00
Andrew Tridgell
17ea0bd3b5 add an align4() function
(This used to be commit 7969f4dccb)
2000-04-11 14:24:48 +00:00
Andrew Tridgell
55fa1630e4 some updates to the process logon code to reflect lukes latest
research plus some cleanups
(This used to be commit 1682faa1b0)
2000-04-11 14:11:14 +00:00
Andrew Tridgell
5f6ccc608f new prototypes
(This used to be commit be7ecd0977)
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 5937ab14d2)
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 707401fc1e)
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 d35bbe56bc)
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 a7b09e3e11)
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 5480ecf24b)
2000-04-10 21:02:45 +00:00
Andrew Tridgell
2733f5352a initialise fsp->fd to -1
(This used to be commit 5257ff5d67)
2000-04-10 13:12:04 +00:00
Andrew Tridgell
1e66881a0c new prototypes
(This used to be commit d9130377b2)
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 d1827a3648)
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 e064422af3)
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 368b0bc1b1)
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 c3b61b3327)
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 08de67ced4)
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 0ec1072e01)
2000-04-10 03:09:42 +00:00
Andrew Tridgell
d97c3e4591 don't echo warning messages twice
(This used to be commit 64a3fd2bc5)
2000-04-10 02:57:54 +00:00
Andrew Tridgell
f4274fe897 utmp compile fix from peter@cadcamlab.org
(This used to be commit c0562a02c3)
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 9a118cd4a2)
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 3fea49e1d8)
2000-04-06 16:23:04 +00:00
Tim Potter
b61dc7f051 fsync() returns an int rather than void.
(This used to be commit 26972823cf)
2000-04-05 22:42:26 +00:00
Tim Potter
bfbbd1ad9d Added *.so
(This used to be commit e6d11483e2)
2000-04-05 22:42:06 +00:00
Tim Potter
a5ef1a71aa Improved clean target.
(This used to be commit facdfd319d)
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 b260ef7cb1)
2000-04-05 19:48:06 +00:00
Jean-François Micouleau
974cf7d7c9 off by one error ...
J.F.
(This used to be commit cef44398f9)
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 396f73c11b)
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 a25891f524)
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 6c442d68af)
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 7325059a09)
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 f249dc041f)
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 738b307bd7)
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 58a16e2718)
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 efbb327ff9)
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 33aa541e89)
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 715fa7ea8c)
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 351b25727e)
2000-03-31 22:30:13 +00:00