mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Ignore trailing dots on file names.
This commit is contained in:
parent
dda17c681f
commit
0c3f70dbfd
@ -521,6 +521,8 @@ BOOL DOSFS_FindUnixName( LPCSTR path, LPCSTR name, LPSTR long_buf,
|
||||
const char *p = strchr( name, '/' );
|
||||
int len = p ? (int)(p - name) : strlen(name);
|
||||
if ((p = strchr( name, '\\' ))) len = MIN( (int)(p - name), len );
|
||||
/* Ignore trailing dots */
|
||||
while (len > 1 && name[len-1] == '.') len--;
|
||||
if (long_len < len + 1) return FALSE;
|
||||
|
||||
TRACE(dosfs, "%s,%s\n", path, name );
|
||||
|
Loading…
Reference in New Issue
Block a user