diff --git a/files/dos_fs.c b/files/dos_fs.c index 3e5a2814fc1..878e1dbda62 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -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 );