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 {
|
else {
|
||||||
do {
|
do {
|
||||||
|
const WCHAR dot[] = {'.', 0};
|
||||||
|
const WCHAR dotdot[] = {'.', '.', 0};
|
||||||
|
|
||||||
|
if (!strcmpW(fd.cFileName, dot) || !strcmpW(fd.cFileName, dotdot))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (attrib_set || attrib_clear) {
|
if (attrib_set || attrib_clear) {
|
||||||
fd.dwFileAttributes &= ~attrib_clear;
|
fd.dwFileAttributes &= ~attrib_clear;
|
||||||
fd.dwFileAttributes |= attrib_set;
|
fd.dwFileAttributes |= attrib_set;
|
||||||
|
|
Loading…
Reference in New Issue