summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* patch from luke to split out lanman code from ipc.c into lanman.cAndrew Tridgell2000-04-191-9/+9
|
* - got rid of the "passive" optionAndrew Tridgell2000-04-191-3/+13
| | | | - cleaned up the standard_sub_*() calls a lot
* got rid of some more old configure tests and includesAndrew Tridgell2000-04-174-65/+7
|
* removed some obsolete configure tests (sysv ipc etc)Andrew Tridgell2000-04-171-3/+0
|
* converted a couple more functions to use a fd instead of a FILE*Andrew Tridgell2000-04-161-0/+1
| | | | | added a new utility fn file_lines_slashcont() which is used to handle files that treat a \ followed by a newline as a blank
* converted a bunch more functions to use a fd instead of a FILE*Andrew Tridgell2000-04-161-2/+5
| | | | | | | to support some of this I added the following functions in util_file.c file_lines_pload : load lines from a pipe file_pload : load a pipe into memory
* added fdprintf()Andrew Tridgell2000-04-161-0/+10
| | | | | | | this is like fprintf() but operates on a file descriptor combined with file_load_lines() this makes it really easy to get rid of the use of fopen() in Samba.
* 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.
* 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-152-0/+10730
| | | | | | | 3MB to 250k. I split the table into 3 sections, after noticing that 5/6 of the table was empty.
* Log file check patch from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>.Jeremy Allison2000-04-151-1/+2
| | | | | | | 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.
* Code to map tdb locks onto POSIX. Mainly placeholder code at the moment,Jeremy Allison2000-04-122-4/+6
| | | | | | but the structure is done enough so that Andrew can look it over and give a yea/nay decision. Jeremy.
* 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-121-4/+1
| | | | | | 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 latest open() code changes broke the NT directory opens. Detect if aJeremy Allison2000-04-111-1/+1
| | | | | | 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-113-9/+9
| | | | | | | | | | | | 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
|
* new prototypesAndrew Tridgell2000-04-111-4/+8
|
* new prototypesAndrew Tridgell2000-04-101-11/+10
|
* 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
* Modified interfaces and added checks around *all* *alloc callsJeremy Allison2000-04-061-2/+2
| | | | | so that errors are returned on memory allocation failure. Jeremy.
* changed all the status code to ERROR_xxx instead of NT_STATUS_xx which areJean-François Micouleau2000-04-051-0/+3
| | | | | | | | | | | | 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.
* Change to vfs API. POSIX states fsync should return an int, not a void.Jeremy Allison2000-04-042-2/+2
| | | | Jeremy.
* Removed unused parameter vuid from rpc_server api_* calls. For the very fewTim Potter2000-04-041-1/+1
| | | | | | | functions that need to access the vuid, it can be obtained from the current_user global. Did some whitespace cleanup.
* Added check for LL suffix to long long ints needed by AIX 4.3.x compilerJeremy Allison2000-03-291-0/+1
| | | | | to allow successful build. Jeremy.
* rewrote getprinterdriver level 3, now correctly handle the dependentJean-François Micouleau2000-03-292-10/+12
| | | | | | | | files. A number of memleak fixed some error return values fixed. J.F.
* changed the definition of dos_PutUniCodeAndrew Tridgell2000-03-271-1/+1
| | | | | | | | | the previous definition could result is us overflowing a buffer. The null termination was always added yet the size returned did not include the null termination. the new function takes a BOOL null_terminate, and always returns the total number of bytes consumed by the string.
* the final part of the nmbd merge between head and tng - this gets theAndrew Tridgell2000-03-272-343/+344
| | | | GETDC stuff sorted out
* moved nmblib-specific code from util.c to nmblib.c.Luke Leighton2000-03-271-344/+343
|
* Correctly convert from little-endian UNICODE to dos_codepage when doingJeremy Allison2000-03-221-16/+18
| | | | | secure file create. Jeremy.
* acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.Jeremy Allison2000-03-223-0/+14
| | | | | | | | | | | | | | include/byteorder.h: Added alignment macros. include/nameserv.h: Added defines for msg_type field options - from rfc1002. lib/time.c: Typo fix. lib/util_unistr.c: Updates from UNICODE branch. printing/nt_printing.c: bzero -> memset. smbd/connection.c: Added check for UT_SYSLEN for utmp code. Other fixes : Rollback of unapproved commit from Luke. Please *ask* next time before doing large changes to HEAD. Jeremy.
* Fixes to add "paranoid" option to popen. Checks some basic things.Jeremy Allison2000-03-161-1/+1
| | | | Jeremy
* include/smb.h:Jeremy Allison2000-03-131-0/+3
| | | | | | | | smbd/negprot.c: smbd/reply.c: Fixes to recognise Win2k. param/loadparm.c: Put debug timestamp parameter back to correct default. smbd/nttrans.c: Fix to detect Win2k unicode bug with transact create. Jeremy.
* oops ! forgot smb.h in last commitJean-François Micouleau2000-03-133-0/+14
| | | | | | added info level 1 parsing code for addprinter(ex) J.F.
* parse correctly getprinterdriver2Jean-François Micouleau2000-03-132-6/+8
| | | | | | | | | found a stupid bug in enumprinters fixed some memleaks found a coredump in enumprinterdata getprinterdriverdir responds correctly now. J.F.
* Cleaned up unused variables, returns from non-void functions etc.Shirish Kalele2000-03-101-5/+1
|
* Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes ↵Jeremy Allison2000-03-103-33/+22
| | | | | | | -Wpointer-arith -Wcast-qual Partially implemented rpc daemon redirect (needs more work). Jeremy.
* you know, when you do a cvs commit, you _really_ expect it to actually work.Luke Leighton2000-03-102-24/+34
| | | | this explains why j-f wasn't happy.
* getprinter level 0: was to short, found most of the fields, undocumented,Jean-François Micouleau2000-03-105-52/+82
| | | | | | | | | undecoded, nothing in MSDN, but now it works :-) cleanup of error codes. fixed some dfs declarations function. J.F.
* indent went wrong. grr.Luke Leighton2000-03-101-226/+357
|
* Big update moving the multi-pdu support from 2.0.x into HEAD for JFJeremy Allison2000-03-096-49/+115
| | | | | | | | | | | | and the printer functions. Also tidied up some header includes and got the order right so you can now do a : make proto make clean make Jeremy.
* dded Microsoft Dfs services.Shirish Kalele2000-03-086-1/+84
| | | | | | | | | | | | | | | | | * added a new msdfs/ directory under source/ * added msdfs sources under this directory. * modified configure setup to add a --with-msdfs configure time option Modified Files: Makefile.in acconfig.h configure configure.in include/config.h.in include/includes.h include/proto.h include/smb.h include/smb_macros.h param/loadparm.c smbd/negprot.c smbd/nttrans.c smbd/process.c smbd/reply.c smbd/server.c smbd/trans2.c Added Files: include/msdfs.h msdfs/README msdfs/msdfs.c msdfs/msdfs_tdb.c msdfs/parse_dfs_map.c ----------------------------------------------------------------------
* Enumprinters level 1: reply *exactly* like an NT serverJean-François Micouleau2000-03-071-0/+1
| | | | | | BTW, found a little memleak in it. J.F.
* fixed enumprinterdata.Jean-François Micouleau2000-03-071-1/+8
| | | | J.F.
* changed prs_unistr to parse empty and non-empty strings the same way.Jean-François Micouleau2000-03-062-15/+18
| | | | | | | | | | | | fixed typo in SPOOLSS_SYNT some cleanup of unused functions wrote make_spoolss_enumprinter and make_spoolss_openprinterex for rpcclient as I'm trying to keep in sync the parsing code between HEAD and TNG. Will commit changes to TNG after lunch. J.F.
* Fixes from Luke, back-ported from TNG to Win2k. Correctly return FAULT_PDU onJeremy Allison2000-02-292-0/+11
| | | | | unknown rpc calls. Win2k now correctly shows the owners of files. Jeremy.
* Fixes for strange Win2K attempts to auto-inherit ACLs.Jeremy Allison2000-02-291-0/+11
| | | | Jeremy.
* added enumprintprocessordatatypesJean-François Micouleau2000-02-262-352/+360
| | | | | | now NT is happy and the "always send data in RAW mode" is checked J.F.