summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* the bulk of the changes. Also split the loadparm related code into ↵Andrew Tridgell2000-04-162-309/+797
| | | | | | | | | | | | | | | | | | | | | | | | | printing/load.c so swat can get it without linking to the backend code ------------ The following series of commits are for the new tdb based printing backend. This completely replaces our old printing backend. Major changes include: - all print ops are now done in printing/*.c rather than scattered all over the place - system job ids are decoupled from SMB job ids - the lpq parsers don't need to be nearly so smart, they only need to parse the filename, the status and system job id - we can store lots more info about a job, including the full job name - the queue cache control is much better I also added a new utility routine file_lines_load() that loads a text file and parses it into lines. This is used in out lpq parsing and I also want to use it to replace all of our fgets() based code in other places.
* the new file_lines_load() and file_lines_free() routines. Very useful!Andrew Tridgell2000-04-161-0/+64
| | | | | | | | | | | | | | | | | | | | | ------------ The following series of commits are for the new tdb based printing backend. This completely replaces our old printing backend. Major changes include: - all print ops are now done in printing/*.c rather than scattered all over the place - system job ids are decoupled from SMB job ids - the lpq parsers don't need to be nearly so smart, they only need to parse the filename, the status and system job id - we can store lots more info about a job, including the full job name - the queue cache control is much better I also added a new utility routine file_lines_load() that loads a text file and parses it into lines. This is used in out lpq parsing and I also want to use it to replace all of our fgets() based code in other places.
* the fsp needs a jobid in it nowAndrew Tridgell2000-04-162-14/+34
| | | | | | | | | | | | | | | | | | | | | ------------ The following series of commits are for the new tdb based printing backend. This completely replaces our old printing backend. Major changes include: - all print ops are now done in printing/*.c rather than scattered all over the place - system job ids are decoupled from SMB job ids - the lpq parsers don't need to be nearly so smart, they only need to parse the filename, the status and system job id - we can store lots more info about a job, including the full job name - the queue cache control is much better I also added a new utility routine file_lines_load() that loads a text file and parses it into lines. This is used in out lpq parsing and I also want to use it to replace all of our fgets() based code in other places.
* The following series of commits are for the new tdb based printingAndrew Tridgell2000-04-163-11/+13
| | | | | | | | | | | | | | | | | | | backend. This completely replaces our old printing backend. Major changes include: - all print ops are now done in printing/*.c rather than scattered all over the place - system job ids are decoupled from SMB job ids - the lpq parsers don't need to be nearly so smart, they only need to parse the filename, the status and system job id - we can store lots more info about a job, including the full job name - the queue cache control is much better I also added a new utility routine file_lines_load() that loads a text file and parses it into lines. This is used in out lpq parsing and I also want to use it to replace all of our fgets() based code in other places.
* added standard_sub_snum() function for modules that don't haveAndrew Tridgell2000-04-151-1/+8
| | | | a connection structure
* use macros for table boundariesAndrew Tridgell2000-04-151-6/+9
|
* don't need this monster any moreAndrew Tridgell2000-04-151-65536/+0
|
* a quick hack to reduce the size of the unicode map table headers fromAndrew Tridgell2000-04-153-9/+10769
| | | | | | | 3MB to 250k. I split the table into 3 sections, after noticing that 5/6 of the table was empty.
* use open() not fopen() on codepage files.Andrew Tridgell2000-04-151-7/+7
| | | | | in general we need to get rid of all uses of fopen(). The hard one will be the debug code and dbf.
* Log file check patch from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>.Jeremy Allison2000-04-153-7/+40
| | | | | | | Modified to do checks in timeout processing not in main loop. This (IMHO) is the correct place as (a) we are already root, and (b) it is guarenteed to be called every 200 smb requests. Jeremy.
* Ensure sign&seal work. Data len must have RPC_HEADER_LEN removed, butJeremy Allison2000-04-141-1/+5
| | | | | offset should not (rpc header already consumed). This fix does not affect tng. Jeremy.
* use interpret_addr2() instead of inet_aton()Andrew Tridgell2000-04-141-1/+1
|
* rpc_parse/parse_rpc.c: Changes from TNG (thanks Luke) for NTLMSSP parsing.Jeremy Allison2000-04-131-10/+9
| | | | | smbd/reply.c: Fixed typo in debug. Jeremy.
* Typo - missing '}'.Jeremy Allison2000-04-131-0/+1
| | | | Jeremy.
* Removed "ole locking compat" parameter (no longer used).Jeremy Allison2000-04-123-56/+114
| | | | | | We now get/set/check POSIX locks, but I still need to code up the close fd braindamage... Jeremy.
* Implmented mapping of lock offset/count from 64 bit MS rangesJeremy Allison2000-04-122-14/+158
| | | | | | to either 63 or 31 bit POSIX ranges. Code to get these locks not yet added. Jeremy.
* Code to map tdb locks onto POSIX. Mainly placeholder code at the moment,Jeremy Allison2000-04-125-13/+170
| | | | | | but the structure is done enough so that Andrew can look it over and give a yea/nay decision. Jeremy.
* logic for domainsidsize is if size is zero, there's no sid, so don'tLuke Leighton2000-04-121-1/+0
| | | | | | | advance over it and 4-byte align. this _used_ to be "regardless of domainsidsize, advance by domainsidsize+3" which is wrong.
* Ensure that CHECK_FNUM rejects fd == -1 correctly.Jeremy Allison2000-04-121-1/+4
| | | | Jeremy.
* Roll back to using static MACHINE.SID after consultation with Andrew. ThisJeremy Allison2000-04-124-363/+203
| | | | | | code will be removed soon and a SID auto-generated from (probably) primary hostname and never stored in a file will replace it. Jeremy.
* Andrew made it faster :-).Jeremy Allison2000-04-111-2/+2
| | | | Jeremy.
* Bloody typo ! It should be & 3 , & 1 *not* &~3, &~1.Jeremy Allison2000-04-111-2/+2
| | | | Jeremy.
* The changes made here broke NT security descriptor returning to NT clients.Jeremy Allison2000-04-111-0/+2
| | | | | We need to talk about the MACHINE.SID/<WORKGROUP_NAME>.SID mess..... Jeremy.
* The latest open() code changes broke the NT directory opens. Detect if aJeremy Allison2000-04-113-10/+28
| | | | | | 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/byteorder.h: ALIGN4/ALIGN2 macros.Jeremy Allison2000-04-119-152/+75
| | | | | | | | | | | | 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.
* prototypesAndrew Tridgell2000-04-111-0/+1
|
* add a commentAndrew Tridgell2000-04-111-1/+1
|
* add an align4() functionAndrew Tridgell2000-04-111-1/+14
|
* some updates to the process logon code to reflect lukes latestAndrew Tridgell2000-04-111-20/+38
| | | | research plus some cleanups
* new prototypesAndrew Tridgell2000-04-111-4/+8
|
* finally got sick of the "extern int Client" code and the stupidAndrew Tridgell2000-04-1119-217/+195
| | | | | | | | | | | | | | | | 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.
* added a cheap and nasty skip_unibuf() fn to allow easier merging fromAndrew Tridgell2000-04-111-0/+10
| | | | | | TNG out unicode string handling functions need a lot of work
* two minor bugfixes for SCO UnixWare. The first is to catch SIGPIPE so that ↵Andrew Tridgell2000-04-112-0/+4
| | | | putmsg() inside their send() doesn't kill swat and the scond is to open /dev/null to replace stdin after we close that
* added checks to open both \\server\printer and \\server\share.Jean-François Micouleau2000-04-101-3/+44
| | | | | | it doesn't work, the getprinter level 0 reply is wrong... J.F.
* Fix for soft quotas not being set fromJeremy Allison2000-04-101-0/+24
| | | | | Norbert Püschel <Pueschel.Norbert@Walzbarren-VAW.ne.uunet.de> Jeremy.
* initialise fsp->fd to -1Andrew Tridgell2000-04-101-0/+1
|
* new prototypesAndrew Tridgell2000-04-101-11/+10
|
* the bulk of the changes to get rid of fd_ptr and move print openAndrew Tridgell2000-04-1011-1023/+231
| | | | | | | | | 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
* rather than doing print file open processing in open.c we now handleAndrew Tridgell2000-04-101-0/+74
| | | | | | | | | | 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
* the first of a bunch of changes to code with getting rid of the fd_ptrAndrew Tridgell2000-04-101-6/+23
| | | | | | element in the fsp pretty mechanical stuff, but it affects lots of files.
* got rid of the file_fd_struct structure completely.Andrew Tridgell2000-04-101-22/+4
| | | | | | | | | 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
* removed the read prediction code from the head branch. I think theAndrew Tridgell2000-04-101-1/+1
| | | | | idea is fundamentally flawed anyway and it has been disabled for a long time.
* split out the lpq parsing code into a separate fileAndrew Tridgell2000-04-104-861/+886
| | | | | | printing/lpq_parse.c getting ready for the new printing backend
* don't echo warning messages twiceAndrew Tridgell2000-04-101-2/+2
|
* utmp compile fix from peter@cadcamlab.orgAndrew Tridgell2000-04-101-2/+2
|
* Modified interfaces and added checks around *all* *alloc callsJeremy Allison2000-04-065-99/+215
| | | | | so that errors are returned on memory allocation failure. Jeremy.
* filled the architecture table (useless for the moment).Jean-François Micouleau2000-04-062-24/+43
| | | | | | fixed GetJob. J.F.
* fsync() returns an int rather than void.Tim Potter2000-04-051-3/+3
|
* Added *.soTim Potter2000-04-051-0/+1
|
* Improved clean target.Tim Potter2000-04-051-2/+3
|