summaryrefslogtreecommitdiffstats
path: root/source/smbd/dir.c
Commit message (Collapse)AuthorAgeFilesLines
* r21889: * Pull from SAMBA-3_0_25 svn r21888Gerald Carter2007-03-201-4/+2
| | | | * Set version to 3.0.25pre2
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-281-23/+86
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r19018: staging for a 3.0.23d on Tuesday (I think we have sufficient changes ↵Gerald Carter2006-10-011-40/+51
| | | | to warrant one)
* r16674: After removing each individual post-3.0.23rc3 change:Gerald Carter2006-06-291-6/+7
| | | | | | | | | | | | | | This pulls is what I considered safe fixes from SAMBA_3_0. This boiled down to either Klocwork fixes or obvious compiler warning fixes. I did not include any changes to fnuction signatures not the version change to the passdb API. Also pulled in the 3 nmbd fixes requested by Jeremy and the wildcard delete fix. This code will sit for a few days in the cooker and then become 3.0.23 if nothing blows up. I don't care how many more compile warning fixes people throw into SAMBA_3_0.
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-1/+1
|
* r14986: Fix OS/2 directory delete bug found by kukks.Jeremy Allison2006-04-081-8/+28
| | | | | | | | | | | | | (Thanks a lot for all your hard work on this). We were caching the results of *all* directory scans, not just the results that match the client wildcard. This actually made no sense, as only matches on the client wildcard can be returned to the client and so might need to be searched for in the cache. This fixes the directory cache to only cache entries that we return to the client. Jeremy.
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2006-02-021-2/+2
| | | | | | | | by saving the UNIX token used to set a delete on close flag, and using it when doing the delete. libsmbsharemodes.so still needs updating to cope with this change. Samba4 torture tests to follow. Jeremy.
* r11657: Tiny improvement to debug error message in dir_check_ftype.Paul Green2005-11-101-1/+1
|
* r11511: A classic "friday night check-in" :-). This moves muchJeremy Allison2005-11-051-1/+1
| | | | | | | | | | | | | | | | of the Samba4 timezone handling code back into Samba3. Gets rid of "kludge-gmt" and removes the effectiveness of the parameter "time offset" (I can add this back in very easily if needed) - it's no longer being looked at. I'm hoping this will fix the problems people have been having with DST transitions. I'll start comprehensive testing tomorrow, but for now all modifications are done. Splits time get/set functions into srv_XXX and cli_XXX as they need to look at different timezone offsets. Get rid of much of the "efficiency" cruft that was added to Samba back in the day when the C library timezone handling functions were slow. Jeremy.
* r11420: Fix issue pointed out by Dina Fine <dina@exanet.com>. We canJeremy Allison2005-10-311-2/+2
| | | | | | | | only tell at parse time from the wire if an incoming name has wildcards or not. If it's a mangled name and we demangle the demangled name may contain wildcard characters. Ensure these are ignored. Jeremy.
* r10558: Fix bug #3010 yet again. Die monster, die !Jeremy Allison2005-09-271-1/+16
| | | | Jeremy.
* r9483: Changed DIR to SMB_STRUCT_DIR because of the amazing stupidity of a ↵Jeremy Allison2005-08-221-1/+1
| | | | | | | UNIX vendor not understanding abstract data types :-(. Jeremy.
* r9457: Attempt to fix bug #3010 by handling END_OF_DIRECTORY_OFFSETJeremy Allison2005-08-211-1/+6
| | | | | consistently. Jeremy.
* r9286: Fix false positive found by Coverity - wcard must not be null.Jeremy Allison2005-08-121-12/+14
| | | | Jeremy.
* r8689: Fixes bugid #2889 for sure. Turns out the OS/2 dos box doesn't like ↵Jeremy Allison2005-07-211-14/+21
| | | | | | | two offsets to be identical. Make offsets for . and .. different (and explicit). Jeremy.
* r8655: Still trying to fix #2889. We don't need the DPTR_MASK afterJeremy Allison2005-07-201-9/+2
| | | | | all, now thinking it might be to do with flags2... Jeremy.
* r8610: If I'm going to do a debug level zero, at least make it useful.Jeremy Allison2005-07-191-1/+2
| | | | Jeremy.
* r8609: Fix for bugid #2889. I think the problem is that the top 16 bits of ↵Jeremy Allison2005-07-191-2/+8
| | | | | | | | | | the "server state" field must be non-zero. As we're using the 32 bit field as an offset then normally this field will be zero. W2K3 fills this field with a counter enumerating the number of SMBsearch calls on this directory - starting at 1. Add back the 1<<31 bit flag DPTR_MASK to ensure this is non-zero - with better checks on use. Jeremy.
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2005-07-081-22/+38
| | | | | | | | | tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy.
* r7893: Add in the extra parameters to opendir() to fix the large ↵Jeremy Allison2005-06-251-39/+30
| | | | | | | directory/insane app problem. Rev vfs version. Doesn't change the normal codepath. Jeremy.
* r7842: With the patch I sent Steve yesterday this gives us complete POSIX ↵Jeremy Allison2005-06-221-1/+1
| | | | | | | pathnames. ie. files containing : and \ can be accessed from Linux. Jeremy.
* r7617: Fix for bug #2801 - delete veto files was broken with the newJeremy Allison2005-06-151-1/+17
| | | | | large directory code. Jeremy.
* r7474: A *foul* and *disgusting* hack to ensure that, at the very lowestJeremy Allison2005-06-101-1/+23
| | | | | | | | | | | | | | level, . and .. are the first two entries returned when reading a directory. This also means we can't seek to these offsets, but we will never be doing that anyway (as far as I can think). The reason we have to do this is that the NT4 explorer will happily display a folder marked ".." as a clickable folder (and probably would display "." as a clickable folder too) if these are not in positions zero and one of the returned file list. W2K seems to have fixed this but there are too many older systems out there... Never mind, more for the "Undocumented CIFS talk", coming to a CIFS2005 conference near you soon.... :-). Jeremy.
* r7210: Fix my own mistakes up, sorry.Jeremy Allison2005-06-031-3/+3
| | | | Jeremy.
* r7200: Don't use memset, use SET_STAT_INVALID (has the same effect).Jeremy Allison2005-06-021-3/+3
| | | | Jeremy.
* r6625: Remove another global variable left over from a long time ago (magic ↵Jeremy Allison2005-05-061-1/+1
| | | | | | char). Jeremy.
* r6550: Move function make_dir_struct from util to dir.cJeremy Allison2005-05-011-0/+34
| | | | Jeremy.
* r6548: Fix bug #2622 - remove DPTR_MASK as it makes no sense.Jeremy Allison2005-05-011-5/+11
| | | | Jeremy.
* r6473: Fix for bug #2644 - test for special files to be ignored was reversed.Jeremy Allison2005-04-251-1/+1
| | | | Jeremy.
* r6417: Strange old IRIX systems return -1 for telldir() whenJeremy Allison2005-04-211-4/+0
| | | | | | | | end of directory reached. Don't check for that and bail when reading directory entries as it's a valid value. Excellent work from Cale Fairchild <cale@brocku.ca> tracked this down. Jeremy.
* r6225: get rid of warnings from my compiler about nested externsHerb Lewis2005-04-061-2/+2
|
* r6169: Fix bug #2563. Infinite loop on non-existant file with findnext.Jeremy Allison2005-04-011-3/+2
| | | | Jeremy
* r6044: Ensure the old search calls always ask mask_match to translateJeremy Allison2005-03-241-2/+2
| | | | | | patterns like ????????.??? - even if using an NT1 protocol. Matches W2K3 behavior. Jeremy.
* r6022: Fix for bug #2533. Incorrect dir listings from OS/2 clients.Jeremy Allison2005-03-241-7/+0
| | | | Jeremy.
* r5922: Fix for NASTY NASTY bug #2501. All my fault :-(. Brown paper bag time.Jeremy Allison2005-03-211-0/+7
| | | | | | Stops Win98 from looping doing findnext on a singleton directory. More testing very welcome. Jeremy.
* r5843: Removed unused variable - pointed out by jason@ncac.gwu.edu in bugid ↵Jeremy Allison2005-03-171-3/+1
| | | | | | #2460. Jeremy.
* r5632: Fix infinite looping bug found by nasty BlueArc test :-).Jeremy Allison2005-03-031-0/+20
| | | | | | When finding a singleton directory remember that we're at the end and don't continuously return the same name. Jeremy.
* r5508: Typo - ZERO_STRUCT -> ZERO_STRUCTP.Jeremy Allison2005-02-221-1/+1
| | | | Jeremy.
* r5183: Ensure we correctly set the per-connection "case_sensitive" setting.Jeremy Allison2005-02-031-5/+5
| | | | | | Rename dptrs_open to the more correct dirhandles_open. Remove old #if 1. Jeremy.
* r5160: First cut at refactoring of directory code to handle non-wildcardJeremy Allison2005-02-011-63/+149
| | | | | | directory match more efficiently. Passes RAW-SEARCH under valgrind but needs more testing (which I'll do later today :-). Jeremy.
* r5154: Tidy up interface a little.Jeremy Allison2005-02-011-2/+4
| | | | Jeremy.
* r5152: Restructure the directory handling code, stop using void * pointersJeremy Allison2005-02-011-220/+162
| | | | | | | | that just allow the wrong pointer to be assigned :-) and make the interface more consistent. Fix the FreeBSD directory problem. Last thing to do is to add the "singleton" directory concept from James Peach's code. Jeremy.
* r5096: Attempt to fix the buildVolker Lendecke2005-01-291-1/+1
|
* r5063: Shamelessly steal the Samba4 logic (and some code :-) for directoryJeremy Allison2005-01-281-135/+215
| | | | | | | | | | evaluation. This stops us from reading the entire directory into memory at one go, and allows partial reads. It also keeps almost the same interface to the OpenDir/ReadDir etc. code (sorry James :-). Next I will optimise the findfirst with exact match code. This speeds up our interactive response for large directories, but not when a missing (ie. negative) findfirst is done. Jeremy
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-3/+3
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r2076: Removed old dir caching code - not being used now we have theJeremy Allison2004-08-251-109/+0
| | | | | | statcache anyway. New dir caching will be done on nanosecond timestamps. Jeremy.
* r1085: Now it's had some proper user testing, merge in the deferred open ↵Jeremy Allison2004-06-081-1/+2
| | | | | | | | fix. I'm still doing more testing, but it fixes a behaviour that we've been wrong on ever since the start of Samba. Jeremy.
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+1096
metze