summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,"/");