Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | moved INSURE hook into util.c | Andrew Tridgell | 2000-04-24 | 1 | -23/+0 | |
| | ||||||
* | fixed another memory leak | Andrew Tridgell | 2000-04-24 | 1 | -0/+1 | |
| | ||||||
* | fixed a parameter bug found by insure | Andrew Tridgell | 2000-04-24 | 1 | -1/+1 | |
| | ||||||
* | moved the INSURE hook into util.c | Andrew Tridgell | 2000-04-24 | 1 | -0/+26 | |
| | ||||||
* | more pstring/fstring errors found by insure | Andrew Tridgell | 2000-04-23 | 1 | -15/+16 | |
| | ||||||
* | fixed a locking database bug - it was actually harmless except that | Andrew Tridgell | 2000-04-23 | 1 | -2/+10 | |
| | | | | | smbstatus could display the wrong filename when files change dev/inum after a rename | |||||
* | don't close high fd's in smbrun when using insure (prevents closing | Andrew Tridgell | 2000-04-23 | 1 | -1/+3 | |
| | | | | error fd) | |||||
* | another fstring/pstring fix | Andrew Tridgell | 2000-04-23 | 1 | -1/+1 | |
| | ||||||
* | fixed another spoolss memory leak | Andrew Tridgell | 2000-04-23 | 2 | -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[] changes | Andrew Tridgell | 2000-04-23 | 1 | -6/+1 | |
| | ||||||
* | split out standard_sub_basic() again to fix a bug where %p was being | Andrew Tridgell | 2000-04-23 | 1 | -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 pstring | Andrew Tridgell | 2000-04-23 | 1 | -1/+1 | |
| | ||||||
* | check for a valid snum when running a printing command | Andrew Tridgell | 2000-04-23 | 1 | -0/+5 | |
| | ||||||
* | Makefile.in change for split of printfsp.c | Andrew Tridgell | 2000-04-23 | 1 | -1/+2 | |
| | ||||||
* | split fsp specific routines out of printing.c to fix linking problem | Andrew Tridgell | 2000-04-23 | 2 | -65/+91 | |
| | | | | in TNG | |||||
* | fixed two uninitialised memory references | Andrew Tridgell | 2000-04-23 | 1 | -2/+2 | |
| | ||||||
* | trick to get full stack trace when using the free version of insure | Andrew Tridgell | 2000-04-23 | 1 | -0/+24 | |
| | ||||||
* | insure caught an uninitialised memory reference - ensure it starts as | Andrew Tridgell | 2000-04-23 | 1 | -0/+2 | |
| | | | | zero | |||||
* | avoided a memory leak in the ubi code by deleting a mangled cache | Andrew Tridgell | 2000-04-23 | 1 | -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 Tridgell | 2000-04-23 | 1 | -0/+1 | |
| | ||||||
* | if using insure then don't close fd 2 | Andrew Tridgell | 2000-04-23 | 1 | -1/+4 | |
| | ||||||
* | return NULL for a zero size memdup | Andrew Tridgell | 2000-04-22 | 1 | -0/+1 | |
| | ||||||
* | don't copy a null groups list | Andrew Tridgell | 2000-04-22 | 1 | -2/+6 | |
| | ||||||
* | fixed overlapping strcpy() found by insure | Andrew Tridgell | 2000-04-22 | 1 | -9/+6 | |
| | ||||||
* | fixed uninitialised snum | Andrew Tridgell | 2000-04-22 | 1 | -0/+1 | |
| | ||||||
* | This is a *big* checkin that may break some things, but implements the | Jeremy Allison | 2000-04-22 | 17 | -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.c | Andrew Tridgell | 2000-04-19 | 1 | -3/+3 | |
| | ||||||
* | split fsusage() into a separate module (to fix linking problems with | Andrew Tridgell | 2000-04-19 | 4 | -129/+157 | |
| | | | | spoolssd in tng) | |||||
* | patch from luke to split out lanman code from ipc.c into lanman.c | Andrew Tridgell | 2000-04-19 | 3 | -3156/+3190 | |
| | ||||||
* | - got rid of the "passive" option | Andrew Tridgell | 2000-04-19 | 6 | -101/+80 | |
| | | | | - cleaned up the standard_sub_*() calls a lot | |||||
* | Sync up with 2.0.7 w.r.t. guest users. | Jeremy Allison | 2000-04-18 | 1 | -3/+3 | |
| | | | | Jeremy. | |||||
* | locking/locking.c: Fixed placeholder code for POSIX locking. | Jeremy Allison | 2000-04-18 | 4 | -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 branch | Andrew Tridgell | 2000-04-18 | 1 | -10/+6 | |
| | ||||||
* | don't parse blank lines | Andrew Tridgell | 2000-04-18 | 1 | -0/+2 | |
| | ||||||
* | fixed some crash bugs in the nt forms parsing | Andrew Tridgell | 2000-04-18 | 2 | -6/+8 | |
| | ||||||
* | ReadDirName calls vfs->readdirname calls dos_readdirname. | Luke Leighton | 2000-04-18 | 1 | -5/+5 | |
| | | | | replaced with readdirname. ditto for OpenDir and CloseDir. | |||||
* | Corrected minor parsing errors. | Shirish Kalele | 2000-04-17 | 2 | -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 stand | Shirish Kalele | 2000-04-17 | 1 | -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 includes | Andrew Tridgell | 2000-04-17 | 8 | -166/+85 | |
| | ||||||
* | removed some obsolete configure tests (sysv ipc etc) | Andrew Tridgell | 2000-04-17 | 7 | -442/+161 | |
| | ||||||
* | moved standard_sub() and friends into a separate module | Andrew Tridgell | 2000-04-17 | 3 | -270/+297 | |
| | ||||||
* | converted a couple more functions to use a fd instead of a FILE* | Andrew Tridgell | 2000-04-16 | 4 | -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 Tridgell | 2000-04-16 | 8 | -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 code | Andrew Tridgell | 2000-04-16 | 1 | -8/+8 | |
| | ||||||
* | got rid of all the FILE* calls in the NT print system. | Andrew Tridgell | 2000-04-16 | 1 | -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 Tridgell | 2000-04-16 | 3 | -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 comments | Andrew Tridgell | 2000-04-16 | 1 | -2/+0 | |
| | ||||||
* | improved the error handling and added queue pause and resume | Andrew Tridgell | 2000-04-16 | 1 | -25/+43 | |
| | ||||||
* | use some symbolic names for print queue status | Andrew Tridgell | 2000-04-16 | 1 | -11/+17 | |
| | ||||||
* | added helper fns to change from internal status codes to nt spoolss codes | Andrew Tridgell | 2000-04-16 | 1 | -5/+41 | |
| |