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:
parent
78eae77ec1
commit
42f744d871
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user