From abf5d7d7e15becfba927f8b85ecd9bc46939d8fb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2019 22:31:40 +0200 Subject: [PATCH] smbd: Use "ISDOT" in reply_setatr Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri May 3 23:45:55 UTC 2019 on sn-devel-184 --- source3/smbd/reply.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index ace0d71dbbeb..ef93e63c8215 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1520,8 +1520,7 @@ void reply_setatr(struct smb_request *req) goto out; } - if (smb_fname->base_name[0] == '.' && - smb_fname->base_name[1] == '\0') { + if (ISDOT(smb_fname->base_name)) { /* * Not sure here is the right place to catch this * condition. Might be moved to somewhere else later -- vl -- 2.34.1