summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* another fstring/pstring fixAndrew Tridgell2000-04-231-1/+1
|
* fixed another spoolss memory leakAndrew Tridgell2000-04-232-2/+2
| | | | | I am falling in love with insure - it is finding _lots_ of memory problems
* fixed a memory leak I caused last week with my lines[] changesAndrew Tridgell2000-04-231-6/+1
|
* split out standard_sub_basic() again to fix a bug where %p was beingAndrew Tridgell2000-04-231-14/+29
| | | | substituted in the loadparm code and thus leaving lpq with no printer
* we can't pass a fstring to a routine expecting a pstringAndrew Tridgell2000-04-231-1/+1
|
* check for a valid snum when running a printing commandAndrew Tridgell2000-04-231-0/+5
|
* Makefile.in change for split of printfsp.cAndrew Tridgell2000-04-231-1/+2
|
* split fsp specific routines out of printing.c to fix linking problemAndrew Tridgell2000-04-232-65/+91
| | | | in TNG
* fixed two uninitialised memory referencesAndrew Tridgell2000-04-231-2/+2
|
* trick to get full stack trace when using the free version of insureAndrew Tridgell2000-04-231-0/+24
|
* insure caught an uninitialised memory reference - ensure it starts asAndrew Tridgell2000-04-231-0/+2
| | | | zero
* avoided a memory leak in the ubi code by deleting a mangled cacheAndrew Tridgell2000-04-231-1/+11
| | | | | | entry before adding to ensure that we don't ever add a duplicate entry this code can be removed when ubi gets fixed
* fixed a prs memory leak (weren't freeing input buffer)Andrew Tridgell2000-04-231-0/+1
|
* if using insure then don't close fd 2Andrew Tridgell2000-04-231-1/+4
|
* return NULL for a zero size memdupAndrew Tridgell2000-04-221-0/+1
|
* don't copy a null groups listAndrew Tridgell2000-04-221-2/+6
|
* fixed overlapping strcpy() found by insureAndrew Tridgell2000-04-221-9/+6
|
* fixed uninitialised snumAndrew Tridgell2000-04-221-0/+1
|
* This is a *big* checkin that may break some things, but implements theJeremy Allison2000-04-2217-562/+598
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new open mechanism Andrew & I discussed. config.sub: configure: Included the QNX patch. include/vfs.h: smbd/vfs-wrap.c: smbd/vfs.c: Added ftruncate vfs call (needed). Note that we will also need locking calls in the vfs (to be added). lib/util_unistr.c: nmbd/nmbd_processlogon.c: Fix for NT domain logons causing nmbd to core dump. Also fix for sidsize DOS bug. locking/locking.c: Check value of ret before using it for memdup. printing/printing.c: Convert print_fsp_open to return an allocated fsp. rpc_server/srv_lsa.c: Fix for NT domain logons. I have removed all use of lp_share_modes() from the code (although I left the parameter in the table for backwards compatibility). It no longer makes sense for this to exist. smbd/close.c: Removed lp_share_modes(). smbd/fileio.c: Fixed parameters to unlock_share_entry call in panic code. smbd/files.c: Correctly set the unix_ERR_code to ERRnofids on fsp allocation fail. smbd/nttrans.c: smbd/reply.c: smbd/trans2.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. smbd/open.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. In addition I have fixed a long standing race condition in the deny mode processing w.r.t. two smbd's creating a file. Andrew, please note that your original idea of using open with O_EXCL in this case would not work (I went over the races very carefully) and so we must re-check deny modes *after* the open() call returns. This is because there is a race between the open with O_EXCL and the lock of the share mode entry. Imagine the case where the first smbd does the open with O_EXCL and a deny mode of DENY_ALL, but is pre-empted before it locks the share modes and creates the deny mode entry for DENY_ALL. A second smbd could then come in with O_RDONLY and a deny mode of DENY_NONE and the two opens would be allowed. The *only* way to fix this race is to lock the share modes after the open and then do the deny mode checks *after* this lock in the case where the file did not originally exist. This code will need extensive testing but seems to initially work. Jeremy.
* use sys_fsusage() not disk_free() in printing.cAndrew Tridgell2000-04-191-3/+3
|
* split fsusage() into a separate module (to fix linking problems withAndrew Tridgell2000-04-194-129/+157
| | | | spoolssd in tng)
* patch from luke to split out lanman code from ipc.c into lanman.cAndrew Tridgell2000-04-193-3156/+3190
|
* - got rid of the "passive" optionAndrew Tridgell2000-04-196-101/+80
| | | | - cleaned up the standard_sub_*() calls a lot
* Sync up with 2.0.7 w.r.t. guest users.Jeremy Allison2000-04-181-3/+3
| | | | Jeremy.
* 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
* updates from the TNG branchAndrew Tridgell2000-04-181-10/+6
|
* don't parse blank linesAndrew Tridgell2000-04-181-0/+2
|
* fixed some crash bugs in the nt forms parsingAndrew Tridgell2000-04-182-6/+8
|
* ReadDirName calls vfs->readdirname calls dos_readdirname.Luke Leighton2000-04-181-5/+5
| | | | replaced with readdirname. ditto for OpenDir and CloseDir.
* 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.
* 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.
* got rid of some more old configure tests and includesAndrew Tridgell2000-04-178-166/+85
|
* removed some obsolete configure tests (sysv ipc etc)Andrew Tridgell2000-04-177-442/+161
|
* moved standard_sub() and friends into a separate moduleAndrew Tridgell2000-04-173-270/+297
|
* 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
* 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
* got rid of FILE* in the unix name mapping codeAndrew Tridgell2000-04-161-8/+8
|
* 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.
* 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.
* removed old commentsAndrew Tridgell2000-04-161-2/+0
|
* improved the error handling and added queue pause and resumeAndrew Tridgell2000-04-161-25/+43
|
* use some symbolic names for print queue statusAndrew Tridgell2000-04-161-11/+17
|
* added helper fns to change from internal status codes to nt spoolss codesAndrew Tridgell2000-04-161-5/+41
|
* - 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
* added tdb_get_int() and tdb_store_int()Andrew Tridgell2000-04-161-0/+34
| | | | they are very useful for database versioning
* 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.
* 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.
* 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.