1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-08 16:23:49 +03:00

libsmb: Use IS[DOT]DOT

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>
This commit is contained in:
Volker Lendecke
2020-02-22 11:48:45 +01:00
committed by Andreas Schneider
parent abff0c5e41
commit abf9d1d745

View 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;