summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Split off of POSIX locking into separate unit as Andrew requested.Jeremy Allison2000-04-281-0/+1208
| | | | | | Done so I don't lose my edits... :-). Jeremy. (This used to be commit 31a57be658f3fa3569a552e9c5d30174f5a51649)
* Added info level 1005 to netsharegetinfo (is the share a DFS root)Shirish Kalele2000-04-285-2/+52
| | | | | Added dfs_server announcement in set_default_server_announce_type() (This used to be commit 99d07e13520b04d99999938d259d56fa65c8a8ea)
* Added tdb_get/set_int_byblob, which takes a size_t len and then implementedJeremy Allison2000-04-282-7/+21
| | | | | | | the tdb_get/set_int string functions in terms of them. Will be useful in storing POSIX pending close records (which are ints but indexed by dev/inode pairs). Jeremy. (This used to be commit d69e4c6a48746459f973144393529b1f40680d2f)
* Forgot to close when "posix locking" is set to False.Jeremy Allison2000-04-281-2/+5
| | | | | Jeremy. (This used to be commit b812f09ba8ef074c9ff0747ea03a1e33f1ebbe71)
* Added optimization where we are single opener (don't free POSIX locks).Jeremy Allison2000-04-281-1/+21
| | | | | Jeremy. (This used to be commit a2deb91128d59ad04f4ec858ffe4e30f2afb0edd)
* Made changes suggested by Andrew review.Jeremy Allison2000-04-283-53/+54
| | | | | | | | fd_close now calls fd_close_posix() directly. set_posix_lock/release_posix_lock() now handle the reference counting. More changes due when this gets moved to the file locking/posix.c Jeremy. (This used to be commit 239abd48f049c6a8d2bbc0636eacf347ab77588c)
* Ok - this is more subtle than it looks :-).Jeremy Allison2000-04-275-13/+17
| | | | | | | | | | | | | | | | When a file is being closed, once it passes the fnum and tid tests then the locking context should be ignored when removing all locks. This is what is done in the brl close case, but when you have outstanding POSIX locks, then you cannot remove all the brl locks in one go, you have to get the lock list and call do_unlock individually. As this uses global_smbpid as the locking context, you need to make sure that this is set correctly for the specific lock being removed. I now do this by storing the smbpid in each entry in the unlock list returned from the query call. I removed the smbpid from fsp (not needed) and things seem ok (even with the stupid smbpid tricks that smbtorture plays :-). Jeremy. (This used to be commit 6baa96bb466915cc17e8cbad50254d6bd47b967b)
* Fixed subtle unlocking bug when a file is closed. We need to store theJeremy Allison2000-04-276-18/+39
| | | | | | | | | smbpid used when a file was opened in the files_struct. Else we use the wrong global_smbpid when we are closing the file and trying to remove the brl locks - this causes the brl locks to be left when the file is closed as the samba_context check fails. Jeremy. (This used to be commit 2746e5602e493e5b022764b4b839eb4d2f14363b)
* Did the rewrite Andrew wanted where all knowledge of POSIX locking isJeremy Allison2000-04-274-122/+181
| | | | | | | | | | | removed from the smbd/open.c code. We now use a dlink list of structures indexed by dev/inode to store all pending fd's for close. This could be rewritten to use lib/hash.c if this is discovered to be too slow in use. Andrew, please take a look and let me know if this is what you had in mind. Jeremy. (This used to be commit 0487841120a7584da9a2b83b9574562c415d7024)
* Fixed crash bugs Andrew pointed out with LOCK4 smbtortureJeremy Allison2000-04-273-15/+16
| | | | | | | | test. Was miscounting posix locks, plus was not taking into account the case where other_fsp == fsp in the 'move locks' case. DOH ! This code will be re-written anyway :-). Jeremy. (This used to be commit 5278ec016cb24d8263fe6e7c1d389f466270ef24)
* Fixed range check on writeX.Jeremy Allison2000-04-271-1/+4
| | | | | Jeremy. (This used to be commit 9cde198108439358e99128fa9a1b3000e33f5414)
* Tidyup of smbecho.Jeremy Allison2000-04-271-2/+4
| | | | | Jeremy. (This used to be commit 4a4b7a994bbe327216f736133edc51cf9a351716)
* file winbindd_ntdom.h was initially added on branch SAMBA_TNG.Tim Potter2000-04-270-0/+0
| | | | (This used to be commit b040be5ef967a9149cd6a4955b8e0404152e9f15)
* file ntdom_config.h was initially added on branch SAMBA_TNG.Tim Potter2000-04-270-0/+0
| | | | (This used to be commit 2a097e7b62441b5ccb90fa1d4a8b57ed6ee83fd0)
* quick hack to get smbtorture working againAndrew Tridgell2000-04-271-0/+2
| | | | (This used to be commit 2d37c1f98f45646546ee76743f9df90b1c0b01ae)
* 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. (This used to be commit 135855dbd3b8934a49229b81646cd4469acba926)
* moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell2000-04-2532-85/+97
| | | | (This used to be commit d7cd7c88fdabb01d9e40ae8a657737907a21ac37)
* 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 (This used to be commit 10c5470835b43116ed48b3137c3b9cc867a20989)
* added TDB_MODIFY flag - patch from from lukeAndrew Tridgell2000-04-253-5/+30
| | | | (This used to be commit 90b574296e06cd6ed4fedc1e5a8ae412a5e78b45)
* fixed a memory leak in nmblookupAndrew Tridgell2000-04-251-0/+2
| | | | (This used to be commit 49865ea06c96b01a5e5dec84d64b78bf26129be3)
* fixed a memory leak of devmode in spoolssAndrew Tridgell2000-04-251-0/+3
| | | | | this stuff is screaming out for talloc() rather than malloc/free (This used to be commit e9576124cbe8322ed7bee9f4e72b5d1753ee0bac)
* don't qsort a list less than 2 entriesAndrew Tridgell2000-04-251-1/+3
| | | | (This used to be commit 6faa3c23ae6d8aab52f8d6689e04bde9b3029804)
* 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. (This used to be commit 1df48ed55ee303b6d84d7277fd79761cfe5f7052)
* 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. (This used to be commit 389b700a26e8a308a0dff6fc038c38068aa0119a)
* dump in a binary formatAndrew Tridgell2000-04-241-3/+45
| | | | (This used to be commit 41af3232dba90832684ad8260ce0bb05e077cb02)
* use an size_t not a ssize_t when checking for out of bounds errorsAndrew Tridgell2000-04-241-1/+1
| | | | (This used to be commit 044af3cf977e3172b3b1ce3f71457d5b0a4fc1b2)
* moved INSURE hook into util.cAndrew Tridgell2000-04-241-23/+0
| | | | (This used to be commit 2fba24ef0e4cae64c5a179370c83d8bbf4e70bb8)
* fixed another memory leakAndrew Tridgell2000-04-241-0/+1
| | | | (This used to be commit 780713f67a848ade49c523cda96015ab46337cde)
* fixed a parameter bug found by insureAndrew Tridgell2000-04-241-1/+1
| | | | (This used to be commit a559a8066fb162c4da0a5046c49a105eabf131d9)
* 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)