summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-04 01:13:54 +0000
committerJeremy Allison <jra@samba.org>2000-04-04 01:13:54 +0000
commit9d5ddab76661878e08d9f3b4c6c34f52119318c3 (patch)
treef0edd003e26db8d22d65fa1c5071193a95023b16 /source3/smbd
parent16d53e8752ba6da1eb2b2b516763570544aca83b (diff)
downloadsamba-9d5ddab76661878e08d9f3b4c6c34f52119318c3.tar.gz
samba-9d5ddab76661878e08d9f3b4c6c34f52119318c3.tar.bz2
samba-9d5ddab76661878e08d9f3b4c6c34f52119318c3.zip
Removed strange optimisation (paranoia fix maybe ?) that stopped smbd
from returning '.' and '..' in a top level listing of a trans2 directory scan. NT does return these entries. Jeremy. (This used to be commit 7325059a0940909ddd98b32d62423700545ef87e)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index e6ee65d101..f90ce2ede4 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -320,9 +320,6 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
uint32 len;
time_t mdate=0, adate=0, cdate=0;
char *nameptr;
- BOOL isrootdir = (strequal(conn->dirpath,"./") ||
- strequal(conn->dirpath,".") ||
- strequal(conn->dirpath,"/"));
BOOL was_8_3;
int nt_extmode; /* Used for NT connections instead of mode */
BOOL needslash = ( conn->dirpath[strlen(conn->dirpath) -1] != '/');
@@ -395,9 +392,6 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
if (dont_descend && !isdots)
continue;
- if (isrootdir && isdots)
- continue;
-
pstrcpy(pathreal,conn->dirpath);
if(needslash)
pstrcat(pathreal,"/");