1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

smbd: Use ISDOT/ISDOTDOT instead of strcmp

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-09-29 13:04:28 +02:00 committed by Jeremy Allison
parent 818103c825
commit 552ceb5b41

View File

@ -1235,7 +1235,7 @@ bool is_visible_file(connection_struct *conn,
struct smb_filename *smb_fname_base = NULL;
bool ret = false;
if ((strcmp(".",name) == 0) || (strcmp("..",name) == 0)) {
if (ISDOT(name) || ISDOTDOT(name)) {
return True; /* . and .. are always visible. */
}