From 552ceb5b41deb44e7ba1f827d9d5ff22745489c1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 29 Sep 2020 13:04:28 +0200 Subject: [PATCH] smbd: Use ISDOT/ISDOTDOT instead of strcmp Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ } -- 2.47.3