]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Use IS[DOT]DOT
authorVolker Lendecke <vl@samba.org>
Sat, 22 Feb 2020 10:48:45 +0000 (11:48 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 25 May 2020 08:13:28 +0000 (08:13 +0000)
strequal is not necessary here

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

index 8e2632ef1ced925f7f6123bc613b34673a32bb3e..81aa1dc2cbe0f7de258ca065bcb9d453844d18b0 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;