summaryrefslogtreecommitdiffstats
path: root/source/smbd/dir.c
Commit message (Collapse)AuthorAgeFilesLines
* as suggested by Alexander Oswald <oswald@is.haw-hamburg.de>Simo Sorce2002-07-291-4/+4
| | | | | | hide only unwriteable files and not dirs with this one. may be a hide unwriteable dirs param will follow.
* nice day todaySimo Sorce2002-07-271-0/+69
| | | | add also hide unwriteable as per user request
* Merge in mangle fixes from 2.2.Jeremy Allison2002-06-131-2/+7
| | | | Jeremy.
* Stop smbd looping when hide unreadable is true and .. is unreadable.Jeremy Allison2002-05-201-65/+72
| | | | Jeremy.
* Tidy up winbindd debug. Added Bill Moran's hide unreadable fix.Jeremy Allison2002-04-131-1/+9
| | | | Jeremy.
* This split the mangling code up to allow for the possibility of multipleAndrew Tridgell2002-04-111-3/+3
| | | | | | mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty.
* Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison2002-03-231-2/+2
| | | | | cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy.
* return . and .. first in readdir - this fixes masktest on IRIX whichHerb Lewis2002-03-211-1/+13
| | | | returns . then single letter files then .. then all other files.
* Remove the "stat open" code - make it inline. This should fix theJeremy Allison2002-03-201-22/+5
| | | | | | | | bugs with opening and renaming mp3 files, also the word rename problems that people have had for a while. Needs a make clean :-) make. Also added JohnR's printing fix. Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Made "hide unreadable" work much more reliably (just for Volker :-).Jeremy Allison2001-12-171-1/+37
| | | | Jeremy.
* Don't put a \n on the end of the arg to exit_server()Tim Potter2001-11-051-1/+1
|
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-12/+10
|
* The big character set handling changeover!Andrew Tridgell2001-07-041-5/+2
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* use asprintf for hideunreadable optionAndrew Tridgell2001-04-281-14/+8
|
* Rememver to use VFS at all times... even in new user_can_read_file code :-).Jeremy Allison2001-04-181-3/+3
| | | | Jeremy.
* hide unreadable patch from idraAndrew Tridgell2001-04-161-0/+49
|
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-4/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* removed wrong patch to get_dir_entry(). This was left over from theGerald Carter2001-02-231-5/+0
| | | | wildcard stuff....
* merge from SAMBA_2_2Gerald Carter2001-02-081-0/+5
|
* Turned down noisy debug statement.Tim Potter2001-01-301-1/+1
| | | | From "Richard Bollinger" <rabollinger@home.com>
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-4/+4
| | | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). Andrew gets credit for this one :-) :-). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy.
* more merging voodooAndrew Tridgell2000-05-101-0/+4
| | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done
* fixed our smbsearch code. We now store the mask with the dptr, thisAndrew Tridgell2000-04-301-10/+11
| | | | | | turns out to be essential for a correct implementation (there ins't enough room to store all possible masks in the status return structure!)
* - removed all our old wildcard matching code and replaced it with aAndrew Tridgell2000-04-301-1/+1
| | | | | | | | | | | | | | | | 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
* More Japanese filename fixes wrt VFS code fromTim Potter2000-03-291-6/+7
| | | | Tomoki AONO <aono@cc.osaka-kyoiku.ac.jp>
* Put back lots of missing calls to dos_to_unix(). Thanks toTim Potter2000-02-031-4/+8
| | | | aono@cc.osaka-kyoiku.ac.jp (Tomoki AONO)
* Mega-VFS merge. Yeah baby!Tim Potter2000-02-031-8/+5
| | | | | Synopsis: change every disk access function to work through a vfs_ops structure contained in the connection_struct.
* First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-251-12/+0
| | | | | Inline several commonly used functions as macros. Jeremy.
* client/client.c: I18N fixes.Jeremy Allison2000-01-051-58/+38
| | | | | | smbd/dir.c: Reformatting comments. smbd/ipc.c: New password change code for Win98. Jeremy.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-236/+407
|
* Forgot about closedir() function for VFS. Hoo embarassing.Tim Potter1999-04-081-2/+2
|
* Use VFS operations for file I/O.Tim Potter1999-04-041-3/+3
| | | | | Changed calls to dos_{opendir,readdir} to vfs_{opendir,readdir} equivalents.
* Makefile.in: Added maintainer mode fixes.Jeremy Allison1998-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | aclocal.m4: Added AC_LIBTESTFUNC. configure.in: Fixed -lsecurity -lsec problems. client.c: dos_ fixes. groupdb/aliasunix.c: Dead code removal. include/includes.h: Added default PRINTCAP_NAME. lib/genrand.c: dos_ fixes. lib/replace.c: Added strtoul. lib/system.c: dos_ fixes. lib/util.c: dos_ fixes. lib/util_sid.c: Signed/unsigned fixes. lib/util_str.c: removed bad const. locking/locking_slow.c: dos_ fixes. printing/printing.c: dos_ fixes. rpc_server/srv_samr.c: Dead code removal. rpc_server/srv_sid.c: global_myworkgroup defined with wrong size AGAIN ! smbd/dir.c: dos_ fixes. smbd/open.c: dos_ fixes. smbd/oplock.c: dos_ fixes. smbd/reply.c smbd/server.c smbd/service.c smbd/uid.c: dos_ fixes. Jeremy.
* really fixed the warning this time :)Andrew Tridgell1998-10-081-1/+1
|
* fixed a warningAndrew Tridgell1998-10-081-1/+1
|
* - fixed a bunch of warnings and minor errorsAndrew Tridgell1998-10-081-1/+1
| | | | | | - got smbtorture to compile - removed %D from some of lukes code - Luke, what is %D? it ain't portable anyway
* fixed some cast warnings from "cc -64" on IRIXAndrew Tridgell1998-10-051-3/+4
|
* Changes to test in configure if capabilities are enabled on a system.Jeremy Allison1998-09-281-3/+0
| | | | | | | | | | Changes to get Samba to compile cleanly with the IRIX compiler with the options : -fullwarn -woff 1209,1174 (the -woff options are to turn off warnings about unused function parameters and controlling loop expressions being constants). Split prototype generation as we hit a limit in IRIX nawk. Removed "." code in smbd/filename.c (yet again :-). Jeremy.
* Ok - this is the 64 bit widening check in. It changes the configureJeremy Allison1998-09-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | to check for stat64 and friends, and then changes much of Samba to use the data type SMB_OFF_T for file size information. stat/fstat/lstat/lseek/ftruncate have now become sys_stat etc. to hide the 64 bit calls if needed. Note that this still does not expose 64 bit functionality to the client, as the changes to the reply_xxx smb's are not yet done. This code change should make these changes possible. Still to do before full 64 bit-ness to the client: fcntl lock code. statfs code widening of dev_t and ino_t (now possible due to SMB_DEV_T and SMB_OFF_T types being in place). Let me know if wierd things happen after this check-in and I'll fix them :-). Jeremy.
* More abstraction of file system data types, to move to a 64Jeremy Allison1998-09-011-4/+4
| | | | | | | | | | | | | | | | | | | | | bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy.
* this is the bug change to using connection_struct* instead of cnum.Andrew Tridgell1998-08-141-65/+63
| | | | | | | | Connections[] is now a local array in server.c I might have broken something with this change. In particular the oplock code is suspect and some .dll files aren't being oplocked when I expected them to be. I'll look at it after I've got some sleep.
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-291-287/+14
|
* Changed the definition of the linked list header used in the directoryChristopher R. Hertel1998-07-241-1/+1
| | | | cache so that it uses the new ubi_dlNewList() macro in ubi_dLinkList.h.
* Code added to fix the renaming of a directory under NT SMB calls.Jeremy Allison1998-07-171-2/+2
| | | | | | | | | | | | | | | | local.h: Changed MAXDIR to MAX_OPEN_DIRECTORIES - shmem size also tuned by this. dir.c: Use MAX_OPEN_DIRECTORIES. nttrans.c: Allow opening of a directory to succeed. Doesn't actually open a file descriptor but takes a files_struct slot marked as an fd. reply.c: Changed to close any outstanding is_directory files. reply_close changed to understand directory files. server.c: Added open_directory(), close_directory() calls. smb.h: Added is_directory to files_struct. Changed OPEN_FNUM to check that target is !is_directory (this prevents the normal file calls from processing a directory files_struct. Jeremy.
* I've put the ubiqx headers back into includes.h, and removed them fromChristopher R. Hertel1998-05-221-1/+0
| | | | | | | | | dir.c & mangle.c. This was possible after I checked the tree code to make sure that the tree code did not reference functions by macro name. Also, note that the AVL module has been removed to prevent conflict with the SplayTree macro defines. Chris -)-----
* Removed all ubiqx includes from includes.h. So far, this was only a problemChristopher R. Hertel1998-05-221-0/+1
| | | | | | | | | | | | | | | | | | | | for dir.h, which I've fixed. Andrew did not add includes.h to the ubiqx headers, which is good because it would cause internal conflicts within the ubiqx tree modules. It's also bad because the definitions and includes that are part of includes.h are now in the ubiqx C files, but not in the header files. So, if includes.h were to redefine int, for example, the new definition would be in the ubiqx C files, but not in the headers. So, until Andrew and I can work something out that we both agree upon, there are three basic rules: 1) Don't include includes.h in the ubiqx headers. Problems may arise. 2) The ubiqx headers must follow includes.h in any Samba module that uses them. This can and should all be worked out. We just have to talk about it. Chris -)-----
* This is a security audit change of the main source.Jeremy Allison1998-05-121-7/+7
| | | | | | | | | | | | | | | | | | It removed all ocurrences of the following functions : sprintf strcpy strcat The replacements are slprintf, safe_strcpy and safe_strcat. It should not be possible to use code in Samba that uses sprintf, strcpy or strcat, only the safe_equivalents. Once Andrew has fixed the slprintf implementation then this code will be moved back to the 1.9.18 code stream. Jeremy.
* Fix for NT redirector bug where deltree fails if the resume keyJeremy Allison1998-02-261-7/+2
| | | | | | | | indexes are changed between directory scans. This fix does what NT4.x SP3 does in that it stops using resume keys and returns zero instead. We now use the filename in findnext to continue the search in the correct place (as NT does). Jeremy.