summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* moved the INSURE hook into util.cAndrew Tridgell2000-04-241-0/+26
| | | | (This used to be commit 8c726b9764bac0bc95cf9877e172c9e1262e576d)
* more pstring/fstring errors found by insureAndrew Tridgell2000-04-231-15/+16
| | | | (This used to be commit ba1931bb6596b538549e712cb8898b1ed19f5adc)
* 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 (This used to be commit 990b16fcf7af74f376db157a3e5de7bb68c1a4a1)
* don't close high fd's in smbrun when using insure (prevents closingAndrew Tridgell2000-04-231-1/+3
| | | | | error fd) (This used to be commit defbedd198f02f7bb9af70436f5a25ab754b5fb6)
* another fstring/pstring fixAndrew Tridgell2000-04-231-1/+1
| | | | (This used to be commit 91ed7d8ffe8208d06191c64f5332954ec6bf75da)
* fixed another spoolss memory leakAndrew Tridgell2000-04-232-2/+2
| | | | | | I am falling in love with insure - it is finding _lots_ of memory problems (This used to be commit d9b4076293a4d37e1558ad63a3f522385ee3e521)
* fixed a memory leak I caused last week with my lines[] changesAndrew Tridgell2000-04-231-6/+1
| | | | (This used to be commit 4c889d08aed3cebba54abbc96f28a2d1c545a4b5)
* 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 (This used to be commit b7c7a4d564d36885aa7c3efb2a87caec470df7fe)
* we can't pass a fstring to a routine expecting a pstringAndrew Tridgell2000-04-231-1/+1
| | | | (This used to be commit 8af70f288723e4597bc8639fc0cbec44af2e50c7)
* check for a valid snum when running a printing commandAndrew Tridgell2000-04-231-0/+5
| | | | (This used to be commit 381ddb464fd0da671d567177f1ded10f67952692)
* Makefile.in change for split of printfsp.cAndrew Tridgell2000-04-231-1/+2
| | | | (This used to be commit 980a81651a043f2281f6a8b863d31438212b584a)
* split fsp specific routines out of printing.c to fix linking problemAndrew Tridgell2000-04-232-65/+91
| | | | | in TNG (This used to be commit 82df25b28b94b0041676fb433e0e677acb544579)
* fixed two uninitialised memory referencesAndrew Tridgell2000-04-231-2/+2
| | | | (This used to be commit e4ddd1a4a96b7f723d3d92e4334f4033e1dbc8a8)
* trick to get full stack trace when using the free version of insureAndrew Tridgell2000-04-231-0/+24
| | | | (This used to be commit bb9b3e03deebe23cf3fe10c2cb9b67a730e086a2)
* insure caught an uninitialised memory reference - ensure it starts asAndrew Tridgell2000-04-231-0/+2
| | | | | zero (This used to be commit 53077295b76487a6eafc6b14b69a91074a02aa35)
* 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 (This used to be commit 062d79bf8ba5308803393c7b9140d1f77db3690f)
* fixed a prs memory leak (weren't freeing input buffer)Andrew Tridgell2000-04-231-0/+1
| | | | (This used to be commit be7186b0dd2779fc9f98b4c9f77874ef3ded37d6)
* if using insure then don't close fd 2Andrew Tridgell2000-04-231-1/+4
| | | | (This used to be commit 1c6322473afcf9065fa25777d1b0627f133af3f6)
* return NULL for a zero size memdupAndrew Tridgell2000-04-221-0/+1
| | | | (This used to be commit 9416b58b9c2ff898cdae2cb81ab1e150ef9f0e89)
* don't copy a null groups listAndrew Tridgell2000-04-221-2/+6
| | | | (This used to be commit d0fc1675df35e65488a19d7f5929792fba347b07)
* fixed overlapping strcpy() found by insureAndrew Tridgell2000-04-221-9/+6
| | | | (This used to be commit 1106fa7f24d229c3877263b7a7dde359556435e6)
* fixed uninitialised snumAndrew Tridgell2000-04-221-0/+1
| | | | (This used to be commit 14251aab2ec00aa7f3e6a6e791e78732cb5a9eda)
* 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. (This used to be commit ab0ecc39d688f16b9692fe90b991f0b89287070a)
* use sys_fsusage() not disk_free() in printing.cAndrew Tridgell2000-04-191-3/+3
| | | | (This used to be commit 763704f78fc44976b2d977e8a08ffdeb727903c4)
* split fsusage() into a separate module (to fix linking problems withAndrew Tridgell2000-04-194-129/+157
| | | | | spoolssd in tng) (This used to be commit e2eacdd74c369fbbcd118148149321e36f3d0010)
* patch from luke to split out lanman code from ipc.c into lanman.cAndrew Tridgell2000-04-193-3156/+3190
| | | | (This used to be commit 95246a8432e04bcdeed962d1a6112dfd90518941)
* - got rid of the "passive" optionAndrew Tridgell2000-04-196-101/+80
| | | | | - cleaned up the standard_sub_*() calls a lot (This used to be commit 2c2d95d77d3667eaa9252506a82b9054b0d0e01c)
* 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)