Commit 0c3f70db authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Ignore trailing dots on file names.

parent dda17c68
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment