diff options
author | Jeremy Allison <jra@samba.org> | 2000-04-04 01:13:30 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-04-04 01:13:30 +0000 |
commit | 4ffb2b3c7b4e4c114f659c028df00d322efb1fa8 (patch) | |
tree | b30c6668bc5d1e1b2b93c8127a193be4a1b92dc7 | |
parent | fd04c088a94bfdcf00b6da683d4c6eb4616c62bc (diff) | |
download | samba-4ffb2b3c7b4e4c114f659c028df00d322efb1fa8.tar.gz |
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.
-rw-r--r-- | source/smbd/trans2.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index e6ee65d101d..f90ce2ede48 100644 --- a/source/smbd/trans2.c +++ b/source/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,"/"); |