From: Volker Lendecke Date: Sat, 22 Feb 2020 10:48:45 +0000 (+0100) Subject: libsmb: Use IS[DOT]DOT X-Git-Tag: ldb-2.2.0~1603 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42f744d87191a32dbd46166dbadb77392e0af54b;p=thirdparty%2Fsamba.git libsmb: Use IS[DOT]DOT strequal is not necessary here Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c index 29801d9fa3c..84a2c0a726c 100644 --- a/source3/libsmb/libsmb_file.c +++ b/source3/libsmb/libsmb_file.c @@ -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;