summaryrefslogtreecommitdiffstats
path: root/source/smbd/trans2.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/trans2.c')
-rw-r--r--source/smbd/trans2.c6
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,"/");