From 9d5ddab76661878e08d9f3b4c6c34f52119318c3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 4 Apr 2000 01:13:54 +0000 Subject: 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) --- source3/smbd/trans2.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source3/smbd/trans2.c') 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,"/"); -- cgit