attrib: Skip processing of . and .. entries.

oldstable
Christian Costa 2012-03-26 22:05:45 +02:00 committed by Alexandre Julliard
parent 25b97e9983
commit a575c6d93a
1 changed files with 6 additions and 0 deletions

View File

@ -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;