Module: wine Branch: stable Commit: 652cb9c585dfddc6b821e26074958f887bb2215b URL: https://gitlab.winehq.org/wine/wine/-/commit/652cb9c585dfddc6b821e26074958f8...
Author: Alexandre Julliard julliard@winehq.org Date: Tue May 16 08:00:22 2023 -0500
ntdll: Fix typo in the check for hidden files.
My fault, improperly tested last-minute fixup to the original patch.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54939 (cherry picked from commit 428c4afeb073246858aaf5217e122cad88f5a8d8)
---
dlls/ntdll/unix/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index 9bd73fa6c4b..a6d332ec4e2 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -1305,7 +1305,7 @@ static BOOL is_hidden_file( const char *name ) while (p > name && p[-1] != '/') p--; if (*p++ != '.') return FALSE; if (!*p || *p == '/') return FALSE; /* "." directory */ - if (*p++ != '.') return FALSE; + if (*p++ != '.') return TRUE; if (!*p || *p == '/') return FALSE; /* ".." directory */ return TRUE; }