]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbcacls: Use ISDOT[DOT] instead of strequal
authorVolker Lendecke <vl@samba.org>
Tue, 20 Oct 2020 07:07:29 +0000 (09:07 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 21 Oct 2020 19:04:38 +0000 (19:04 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/smbcacls.c

index 97f3a23a1a5d1c1b4dfb4cfbbb0010d093ca786b..51f70ed6162508a0f3d2f835cb625d66b7119ebd 100644 (file)
@@ -1293,8 +1293,7 @@ static NTSTATUS cacl_set_cb(const char *mntpoint, struct file_info *f,
                dir_end = NULL;
 
                /* ignore special '.' & '..' */
-               if (!f->name || strequal(f->name, ".") ||
-                       strequal(f->name, "..")) {
+               if ((f->name == NULL) || ISDOT(f->name) || ISDOTDOT(f->name)) {
                        status = NT_STATUS_OK;
                        goto out;
                }