Commit a575c6d9 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

attrib: Skip processing of . and .. entries.

parent 25b97e99
......@@ -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;
......
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