mirror of
https://github.com/reactos/wine.git
synced 2025-04-02 16:12:04 +00:00
attrib: Skip processing of . and .. entries.
This commit is contained in:
parent
25b97e9983
commit
a575c6d93a
@ -180,6 +180,12 @@ int wmain(int argc, WCHAR *argv[])
|
||||
}
|
||||
else {
|
||||
do {
|
||||
const WCHAR dot[] = {'.', 0};
|
||||
const WCHAR dotdot[] = {'.', '.', 0};
|
||||
|
||||
if (!strcmpW(fd.cFileName, dot) || !strcmpW(fd.cFileName, dotdot))
|
||||
continue;
|
||||
|
||||
if (attrib_set || attrib_clear) {
|
||||
fd.dwFileAttributes &= ~attrib_clear;
|
||||
fd.dwFileAttributes |= attrib_set;
|
||||
|
Loading…
x
Reference in New Issue
Block a user