| commit | a575c6d93a698f558d85f6de298dc24e602e4dfc | [log] [tgz] |
|---|---|---|
| author | Christian Costa <titan.costa@gmail.com> | Mon Mar 26 22:05:45 2012 +0200 |
| committer | Alexandre Julliard <julliard@winehq.org> | Tue Mar 27 13:55:22 2012 +0200 |
| tree | 74e2c1ef5f6a8bf5a70b33afc32d9182412e30ad | |
| parent | 25b97e99839473276bfba9a35abde480a7181c55 [diff] |
attrib: Skip processing of . and .. entries.
diff --git a/programs/attrib/attrib.c b/programs/attrib/attrib.c index 34b8592..865f59c 100644 --- a/programs/attrib/attrib.c +++ b/programs/attrib/attrib.c
@@ -180,6 +180,12 @@ } 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;