summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Added read overlay write lock on same fnum test to locktest2.Jeremy Allison2000-05-031-1/+117
| | | | | Added locktest5 for locking stacks. Jeremy.
* Insure uninitialized memory read fixes.Jeremy Allison2000-05-033-3/+5
| | | | Jeremy.
* merge 2.0 changesHerb Lewis2000-05-031-5/+6
|
* Fixed wild pointer diff found by insure.Jeremy Allison2000-05-021-1/+1
| | | | Jeremy.
* Implemented the last (I hope:-) part of the locking puzzle, the referenceJeremy Allison2000-05-021-23/+90
| | | | | | | counting when Windows downgrades a write lock to a read lock, then reference counts the unlocks to match the locks. With this code the POSIX unlock isn't done until the final Windows unlock. Jeremy.
* added support for deleting printers into the spoolss systemAndrew Tridgell2000-05-026-1/+139
|
* split the username in the vuser structure into a separateAndrew Tridgell2000-05-0210-27/+34
| | | | | | | | userdom_struct. As the name implies this also contains a domain (unused at the moment). This will be important shortly, as operation in appliance mode needs the domain to be always carried with the username.
* and yet another memory leak - this one in the clientAndrew Tridgell2000-05-021-0/+5
|
* fixed a memory leak (calling hash_table_init twice)Andrew Tridgell2000-05-021-1/+7
|
* fixed a memory leakAndrew Tridgell2000-05-021-0/+2
|
* Moved uglyness needed in fcntl locking (64->32 bit mapping, NFSJeremy Allison2000-05-026-108/+141
| | | | | | | errors etc.) into locking/posix.c, where it is needed. fcntl_lock in lib/util.c is now very small and clean. Added (*lock) op to vfs layer. Jeremy.
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-0238-64/+98
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* locking/posix.c: Fixed double-free nasty crash bug found by insure.Jeremy Allison2000-05-013-4/+10
| | | | | | utils/make_smbcodepage.c: utils/make_unicodemap.c: Insure 'make install' fixes. Jeremy.
* handle tabs in printcap filesAndrew Tridgell2000-05-011-2/+2
| | | | this is needed for lprng
* allow a DEFAULT_PRINTING to be specified in CFLAGSAndrew Tridgell2000-05-011-0/+4
|
* fixed typoAndrew Tridgell2000-05-011-1/+1
|
* added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags.Andrew Tridgell2000-05-016-48/+79
| | | | TDB_INTERNAL replaces the old method of passing a null filename
* - added some error checkingAndrew Tridgell2000-04-303-73/+67
| | | | - removed the VTP hook in smbd
* fixed dptr_wcard handling (need to use strdup)Andrew Tridgell2000-04-301-1/+1
|
* fixed parsing of broken NT short nameAndrew Tridgell2000-04-301-1/+1
|
* handle the special rule of *.* for old style listings when old_list isAndrew Tridgell2000-04-301-0/+3
| | | | true
* removed more cruft from our old wildcard matching codeAndrew Tridgell2000-04-301-37/+0
|
* go back to ascii in SMB_FIND_FILE_BOTH_DIRECTORY_INFOAndrew Tridgell2000-04-301-10/+4
| | | | NT gives out unicode, but NT clients can't handle a unicode response!
* fixed our smbsearch code. We now store the mask with the dptr, thisAndrew Tridgell2000-04-302-32/+19
| | | | | | turns out to be essential for a correct implementation (there ins't enough room to store all possible masks in the status return structure!)
* fix handing of ascii_to_unistrAndrew Tridgell2000-04-301-19/+19
|
* - get the findclose code rightAndrew Tridgell2000-04-301-9/+17
| | | | - handle broken NT response to trans2 findfirst
* added cli_list_old() to allow for old style directory listing fromAndrew Tridgell2000-04-303-11/+158
| | | | masktest
* some cleanupsAndrew Tridgell2000-04-301-10/+13
|
* we don't need fnmatch.c any moreAndrew Tridgell2000-04-306-348/+100
|
* changed masktest to test the internal algorithm against one server,Andrew Tridgell2000-04-301-78/+30
| | | | rather than 2 servers
* - removed all our old wildcard matching code and replaced it with aAndrew Tridgell2000-04-3015-975/+391
| | | | | | | | | | | | | | | | call to ms_fnmatch(). This also removes all the Win9X semantics stuff and a bunch of other associated cruft. - moved the stat cache code into statcache.c - fixed the uint16 alignment requirements of ascii_to_unistr() and unistr_to_ascii() - trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as unicode always (at least thats what NT4 does) - fixed some errors in the in-memory tdb code. Still ugly, but doesn't crash as much
* YIPEE!!!!!Andrew Tridgell2000-04-306-79/+166
| | | | | | | | | | | We finally have a perfect emulation of Microsoft wildcard matching. The routine ms_fnmatch() does wildcard matching with all MS wildcards (including the unicode wildcards), and masktest against a NT4 workstation with hundreds of thousands of random exmaples has not found a single error. amazingly it is only about 60 lines of code, but it has taken us years to get it right. I didn't sleep much last night :)
* put tdb utility functions in a separate fileAndrew Tridgell2000-04-293-45/+71
|
* Removed tdb locking calls (picky Andrew...:-)Jeremy Allison2000-04-291-25/+12
|
* Moved deletion of vfs handle into smbd/conn.c as it was being done tooJeremy Allison2000-04-282-16/+15
| | | | | | | | | | soon in smbd/service.c (file operations were being done after the handle was closed). It looks cleaner in smbd/conn.c as it is part of the closing of a conn struct anyway. Jeremy.
* Ok - this is the *third* implementation of this (third time's the charm :-).Jeremy Allison2000-04-286-1140/+148
| | | | | | | | | | | | | | | | | This implementation keeps all POSIX lock records in a separate in memory tdb database only known about in locking/posix.c. In addition, the pending close fd's are also held in a tdb which has an array of fd's indexed by device and inode. The walk-split code uglyness has been moved to posix.c from brlock.c, which is the only place that needs to know about it, and the extra functions hacked into brlock to expose internal state have been removed. This implementation passes smbtorture locktest4, the only thing I need to check now for completeness is what to do about lock upgrade/downgrades which Win32 allows under some *very* strange circumstances. Jeremy.
* 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.
* 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()
* 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.
* Forgot to close when "posix locking" is set to False.Jeremy Allison2000-04-281-2/+5
| | | | Jeremy.
* Added optimization where we are single opener (don't free POSIX locks).Jeremy Allison2000-04-281-1/+21
| | | | Jeremy.
* 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.
* 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.
* 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.
* 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.
* 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.
* Fixed range check on writeX.Jeremy Allison2000-04-271-1/+4
| | | | Jeremy.
* Tidyup of smbecho.Jeremy Allison2000-04-271-2/+4
| | | | Jeremy.
* file winbindd_ntdom.h was initially added on branch SAMBA_TNG.Tim Potter2000-04-270-0/+0
|
* file ntdom_config.h was initially added on branch SAMBA_TNG.Tim Potter2000-04-270-0/+0
|