summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* Sync up with 2.0.7 w.r.t. guest users.Jeremy Allison2000-04-181-3/+3
| | | | | Jeremy. (This used to be commit 8a99d824c0e9a43c8a8c81140f8c9005c7e2621a)
* locking/locking.c: Fixed placeholder code for POSIX locking.Jeremy Allison2000-04-184-24/+59
| | | | | | | | | printing/printing.c: Cast tdb_delete to (tdb_traverse_func) to stop warning. tmpfile gives mirror warning. smbd/groupname.c: Remember to file_lines_free() on exit. tdb/tdb.h: Add tdb_traverse_func typedef. Jeremy (This used to be commit 204ca1195c86499bd9beb273ce573db7a56ccead)
* updates from the TNG branchAndrew Tridgell2000-04-181-10/+6
| | | | (This used to be commit 36fb5bc72fc6c0de719205ea34f497bfa0c4082f)
* don't parse blank linesAndrew Tridgell2000-04-181-0/+2
| | | | (This used to be commit 8b1afe7e1af0a62244632e0a58b9e513ab4366f0)
* fixed some crash bugs in the nt forms parsingAndrew Tridgell2000-04-182-6/+8
| | | | (This used to be commit e505a6ddf3df37ca485cae117c53fa96d736f897)
* ReadDirName calls vfs->readdirname calls dos_readdirname.Luke Leighton2000-04-181-5/+5
| | | | | replaced with readdirname. ditto for OpenDir and CloseDir. (This used to be commit a0afe0d5f8378463b1e47cd779aee3af98c1940a)
* Corrected minor parsing errors.Shirish Kalele2000-04-172-4/+5
| | | | | | Not adding a Dfs junction to msdfs.tdb if it doesn't have any referred paths as parsed from the dfsmap file. (This used to be commit 462ea8b7fdaa528c3e9bfaca4fdd031888157124)
* When parsing a dfs map for a service, see if the mount points exist that standShirish Kalele2000-04-171-3/+27
| | | | | | for token junction points in the Dfs. If not, create these mount points as subdirectories of the service directory. (This used to be commit 3b79df24687afce4780884b7a784661f69752fe1)
* got rid of some more old configure tests and includesAndrew Tridgell2000-04-178-166/+85
| | | | (This used to be commit f137648504362479143d50477fa38ebf7147968b)
* removed some obsolete configure tests (sysv ipc etc)Andrew Tridgell2000-04-177-442/+161
| | | | (This used to be commit e8905a557a342ba3604a61663c6ff24887a9fd46)
* moved standard_sub() and friends into a separate moduleAndrew Tridgell2000-04-173-270/+297
| | | | (This used to be commit 030ec8e71f9ef533b5d6aece01e67d357e23b7d2)
* converted a couple more functions to use a fd instead of a FILE*Andrew Tridgell2000-04-164-15/+41
| | | | | | added a new utility fn file_lines_slashcont() which is used to handle files that treat a \ followed by a newline as a blank (This used to be commit 384ecd9d66ccd31ee85000c0ca55d413d8f2cc53)
* converted a bunch more functions to use a fd instead of a FILE*Andrew Tridgell2000-04-168-320/+282
| | | | | | | | 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 (This used to be commit a09470817c5b21dba42f9ef4ce5e8b768a254c0b)
* got rid of FILE* in the unix name mapping codeAndrew Tridgell2000-04-161-8/+8
| | | | (This used to be commit 92f85cef8b4c283374edb726ff0b4999a2000b2a)
* got rid of all the FILE* calls in the NT print system.Andrew Tridgell2000-04-161-118/+112
| | | | | | | | | this also fixes a few security holes in that code. JF - you need to be careful about open files for writing! symlinks can trap you. note that I always unlink() the file first, then open with O_EXCL. That is a cheap trick to avoid the symlink problems. (This used to be commit ad56e3d7915100a83b33ad36e627e13325197942)
* added fdprintf()Andrew Tridgell2000-04-163-2/+44
| | | | | | | | 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. (This used to be commit bd5cd502bf52164b95d7bfc026189e04988171db)
* removed old commentsAndrew Tridgell2000-04-161-2/+0
| | | | (This used to be commit 9f49d17d4cf904034ce3718626450dc25541b420)
* improved the error handling and added queue pause and resumeAndrew Tridgell2000-04-161-25/+43
| | | | (This used to be commit 5f5b79c9264510f5851ad1d6f3ce9e2b15e4a0da)
* use some symbolic names for print queue statusAndrew Tridgell2000-04-161-11/+17
| | | | (This used to be commit e8418ab73667e011b15e00a844240723ff4a8cd6)
* added helper fns to change from internal status codes to nt spoolss codesAndrew Tridgell2000-04-161-5/+41
| | | | (This used to be commit 8af879b3f513e7e8ca5f63848d22824b05e68398)
* - put the job status in english not french!Andrew Tridgell2000-04-161-7/+49
| | | | | - add helper fns to change from internal status codes to nt spoolss codes (This used to be commit 917c4814fe076cc38b1becf7d219f2437cba6e60)
* added tdb_get_int() and tdb_store_int()Andrew Tridgell2000-04-161-0/+34
| | | | | they are very useful for database versioning (This used to be commit cc65914cdcceb1fdeeb5d6ec1cf2ea2f865c5092)
* the changes to the main smb codeAndrew Tridgell2000-04-166-358/+318
| | | | | | | | | | | | | | | | | | | | | | ------------ 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. (This used to be commit d870542c2884510bd45fd5b54ff2157434d53f4c)
* JF and Jeremy - please have a look at what I did to the spoolssAndrew Tridgell2000-04-161-183/+59
| | | | | | | | | | | | | | | | | | | | | | | | code. It now uses the new printing backend. ------------ 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. (This used to be commit 2df82862c061cca5644f5f69146c97302ccb42d5)
* 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. (This used to be commit a902caf8d78ae4cb11ea3776d10273cb37d5fcd0)
* 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. (This used to be commit be1e98b3f7a6007d2c9ac8e079724cb264e0dd3a)
* 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. (This used to be commit 4973b7e276ca75dcb63ccb54687d17f87aede7c1)
* 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. (This used to be commit 0b686601593bdc05778dcf70c391efd4fe017df7)
* added standard_sub_snum() function for modules that don't haveAndrew Tridgell2000-04-151-1/+8
| | | | | a connection structure (This used to be commit f35fe3b4a175161128341fe30a61437c560180d1)
* use macros for table boundariesAndrew Tridgell2000-04-151-6/+9
| | | | (This used to be commit a82a5acff2ad2120f5480f0cb08550e95d80c59e)
* don't need this monster any moreAndrew Tridgell2000-04-151-65536/+0
| | | | (This used to be commit 180312c4a6a92ed4b80691d7febade3ef02c8595)
* 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. (This used to be commit c1496736bbdb7f6bf1eb43a54f883e5f41a4d39e)
* 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. (This used to be commit 3992a5169c0b3805c38729c3856c41b1b2527765)
* 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. (This used to be commit c3794fd29fdc4e5a0dbd725cdc24fe210934caf2)
* 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. (This used to be commit 018ec4fdd937994824f53cb956cea1ade9690f97)
* use interpret_addr2() instead of inet_aton()Andrew Tridgell2000-04-141-1/+1
| | | | (This used to be commit f65c6ec6db8e05685c719e23d7b06b3452fbbb4e)
* 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. (This used to be commit c2aa6d66b3ca2a1a6dde8e9a1f6e761d98be517a)
* Typo - missing '}'.Jeremy Allison2000-04-131-0/+1
| | | | | Jeremy. (This used to be commit 0216d81f061ee599a798fdbf25625fbbbd88ef08)
* 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. (This used to be commit 3de058bd43976853b0ed2b6b5529e2a3a08909eb)
* 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. (This used to be commit 9c3b9146a3baff4b2e403ae8fac6c48df1b7e642)
* 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. (This used to be commit db96f83e34a139f47776fcbb5c1624fbf9d9943b)
* 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. (This used to be commit 5086e6425f3630d8f5ca1e25a333eb97fdf86e93)
* Ensure that CHECK_FNUM rejects fd == -1 correctly.Jeremy Allison2000-04-121-1/+4
| | | | | Jeremy. (This used to be commit d2fff2596ad1585fc6a5e033fe8410fe5438a57b)
* 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. (This used to be commit fbfe94a799cda7f728bc920d4f0655d4f537e3b6)
* Andrew made it faster :-).Jeremy Allison2000-04-111-2/+2
| | | | | Jeremy. (This used to be commit f2a775d3fb605587d3ce134dec7a895de1fe562a)
* Bloody typo ! It should be & 3 , & 1 *not* &~3, &~1.Jeremy Allison2000-04-111-2/+2
| | | | | Jeremy. (This used to be commit 83734b67615382d08c3f302f90a94a0eb836c79e)
* 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. (This used to be commit 5bdaa043f015771cccdc9413c37232ab4a3e2e8e)
* 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. (This used to be commit df4302f3911447fcebe9342f6cbf3b89bd3bafba)
* 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. (This used to be commit 491eea8a20bf80d426625479326211dc975857a6)
* prototypesAndrew Tridgell2000-04-111-0/+1
| | | | (This used to be commit 04bee56160d95cdf971dd2e2c05e1b7482e0fbe9)