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:
parent
818103c825
commit
552ceb5b41
@ -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. */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user