libsmb: Use IS[DOT]DOT
authorVolker Lendecke <vl@samba.org>
Sat, 22 Feb 2020 10:48:45 +0000 (11:48 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Feb 2020 17:44:44 +0000 (17:44 +0000)
strequal is not necessary here

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/libsmb_file.c

index 29801d9fa3ca8fd13cdc5f6d348538a443daade6..84a2c0a726cb611a81f0624d7f57e755d03e17d3 100644 (file)
@@ -471,7 +471,7 @@ SMBC_getatr(SMBCCTX * context,
        }
 
        /* path fixup for . and .. */
-       if (strequal(path, ".") || strequal(path, "..")) {
+       if (ISDOT(path) || ISDOTDOT(path)) {
                fixedpath = talloc_strdup(frame, "\\");
                if (!fixedpath) {
                        errno = ENOMEM;