1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +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>
This commit is contained in:
Volker Lendecke 2020-02-22 11:48:45 +01:00 committed by Jeremy Allison
parent 78eae77ec1
commit 42f744d871

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;