diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 6a2538549e4..0001726e582 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -1235,7 +1235,7 @@ bool is_visible_file(connection_struct *conn, struct smb_filename *smb_fname_base = NULL; bool ret = false; - if ((strcmp(".",name) == 0) || (strcmp("..",name) == 0)) { + if (ISDOT(name) || ISDOTDOT(name)) { return True; /* . and .. are always visible. */ }