Re: [PATCH v2 0/1] MR2827: ntdll: Correctly identify hidden files
Sven Baars (@sbaars) commented about dlls/ntdll/unix/file.c:
* Check if the specified file should be hidden based on its unix path and the show dot files option. */ -static BOOL is_hidden_file( const char *name ) +static BOOL is_hidden_file( const char *path ) { const char *p; + struct stat st;
if (show_dot_files) return FALSE;
- p = name + strlen( name ); - while (p > name && p[-1] == '/') p--; - while (p > name && p[-1] != '/') p--; - if (*p++ != '.') return FALSE; - if (!*p || *p == '/') return FALSE; /* "." directory */ - if (*p++ != '.') return FALSE; This line and the following line should probably be combined into one to fix the issue.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2827#note_32881
participants (1)
-
Sven Baars (@sbaars)