smbd: Use "ISDOT" in reply_setatr
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2019 20:31:40 +0000 (22:31 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 May 2019 23:45:55 +0000 (23:45 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri May  3 23:45:55 UTC 2019 on sn-devel-184

source3/smbd/reply.c

index ace0d71dbbeb1e4cd7816fe874cdfc56fcb8585c..ef93e63c8215a7ac252d8b177f91672d1ea0ae96 100644 (file)
@@ -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