summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* quick hack to get smbtorture working againAndrew Tridgell2000-04-271-0/+2
|
* Added the hard code :-).Jeremy Allison2000-04-254-78/+469
| | | | | | | | | | HEAD should now map brl locks correctly into POSIX locks, including the really nasty case of large range unlock. There is a lot of pretty ASCII art in locking/brlock.c explaining exactly how this code works. If it is unclear, please ask me. Jeremy.
* moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell2000-04-2532-85/+97
|
* split clientgen.c into several partsAndrew Tridgell2000-04-2511-3062/+3300
| | | | | the next step is splitting out the auth code, to make adding lukes NTLMSSP support easier
* added TDB_MODIFY flag - patch from from lukeAndrew Tridgell2000-04-253-5/+30
|
* fixed a memory leak in nmblookupAndrew Tridgell2000-04-251-0/+2
|
* fixed a memory leak of devmode in spoolssAndrew Tridgell2000-04-251-0/+3
| | | | this stuff is screaming out for talloc() rather than malloc/free
* don't qsort a list less than 2 entriesAndrew Tridgell2000-04-251-1/+3
|
* Added the code that keeps fd's open across a close if there are other fsp'sJeremy Allison2000-04-243-37/+144
| | | | | | | | | | | | | | | open on the same dev/inode pair with existing POSIX locks. This is done at the smbd/open layer, so smbd just calls fd_close() and the transfer of any open fd's is done under the covers of fd_close(). When an fsp is closed and no other fsp's open on the same dev/inode pair have existing POSIX locks then all fd's associated with this fsp are closed. Now only the hard part of doing the POSIX range unlock code when read locks overlap remains for full POSIX/SMB lock integration.... Jeremy.
* Now that fsp's are created on successful file open, the structure memberJeremy Allison2000-04-2412-36/+47
| | | | | | | | | | | | fsp->open is no longer needed (if an fsp pointer is valid, then it's open :-). NB for Luke, this patch also did not apply to TNG. TNG is not yet identical w.r.t file serving with HEAD. This makes it impossible for me to help maintain TNG. Please fix asap. lib/substitute.c: Removed unused variable (pidstr). Jeremy.
* dump in a binary formatAndrew Tridgell2000-04-241-3/+45
|
* use an size_t not a ssize_t when checking for out of bounds errorsAndrew Tridgell2000-04-241-1/+1
|
* moved INSURE hook into util.cAndrew Tridgell2000-04-241-23/+0
|
* fixed another memory leakAndrew Tridgell2000-04-241-0/+1
|
* fixed a parameter bug found by insureAndrew Tridgell2000-04-241-1/+1
|
* moved the INSURE hook into util.cAndrew Tridgell2000-04-241-0/+26
|
* more pstring/fstring errors found by insureAndrew Tridgell2000-04-231-15/+16
|
* fixed a locking database bug - it was actually harmless except thatAndrew Tridgell2000-04-231-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 closingAndrew Tridgell2000-04-231-1/+3
| | | | error fd)
* 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.