attrib: Dislay attribute flags in the right order.
This commit is contained in:
parent
5d57fc998a
commit
6520f19181
|
@ -199,22 +199,22 @@ int wmain(int argc, WCHAR *argv[])
|
||||||
} else {
|
} else {
|
||||||
static const WCHAR fmt[] = {'%','1',' ',' ',' ',' ',' ','%','2','\n','\0'};
|
static const WCHAR fmt[] = {'%','1',' ',' ',' ',' ',' ','%','2','\n','\0'};
|
||||||
if (fd.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) {
|
if (fd.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) {
|
||||||
flags[0] = 'H';
|
flags[4] = 'H';
|
||||||
}
|
}
|
||||||
if (fd.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM) {
|
if (fd.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM) {
|
||||||
flags[1] = 'S';
|
flags[1] = 'S';
|
||||||
}
|
}
|
||||||
if (fd.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE) {
|
if (fd.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE) {
|
||||||
flags[2] = 'A';
|
flags[0] = 'A';
|
||||||
}
|
}
|
||||||
if (fd.dwFileAttributes & FILE_ATTRIBUTE_READONLY) {
|
if (fd.dwFileAttributes & FILE_ATTRIBUTE_READONLY) {
|
||||||
flags[3] = 'R';
|
flags[5] = 'R';
|
||||||
}
|
}
|
||||||
if (fd.dwFileAttributes & FILE_ATTRIBUTE_TEMPORARY) {
|
if (fd.dwFileAttributes & FILE_ATTRIBUTE_TEMPORARY) {
|
||||||
flags[4] = 'T';
|
flags[6] = 'T';
|
||||||
}
|
}
|
||||||
if (fd.dwFileAttributes & FILE_ATTRIBUTE_COMPRESSED) {
|
if (fd.dwFileAttributes & FILE_ATTRIBUTE_COMPRESSED) {
|
||||||
flags[5] = 'C';
|
flags[7] = 'C';
|
||||||
}
|
}
|
||||||
strcpyW(name, curdir);
|
strcpyW(name, curdir);
|
||||||
strcatW(name, fd.cFileName);
|
strcatW(name, fd.cFileName);
|
||||||
|
|
|
@ -696,9 +696,9 @@ bar\baz removed
|
||||||
@pwd@\foobar
|
@pwd@\foobar
|
||||||
@pwd@
|
@pwd@
|
||||||
------------ Testing attrib ------------
|
------------ Testing attrib ------------
|
||||||
@todo_wine@A @pwd@\foobar\foo@or_broken@A @pwd@\foobar\foo@or_broken@A I @pwd@\foobar\foo
|
A @pwd@\foobar\foo@or_broken@A @pwd@\foobar\foo@or_broken@A I @pwd@\foobar\foo
|
||||||
--- read-only attribute
|
--- read-only attribute
|
||||||
@todo_wine@A R @pwd@\foobar\foo@or_broken@A R @pwd@\foobar\foo@or_broken@A R I @pwd@\foobar\foo
|
A R @pwd@\foobar\foo@or_broken@A R @pwd@\foobar\foo@or_broken@A R I @pwd@\foobar\foo
|
||||||
foo
|
foo
|
||||||
foo original contents
|
foo original contents
|
||||||
Read-only file not deleted
|
Read-only file not deleted
|
||||||
|
@ -707,7 +707,7 @@ Read-only file forcibly deleted
|
||||||
@todo_wine@A @pwd@\foobar\baz\level2@or_broken@A @pwd@\foobar\baz\level2@or_broken@A I @pwd@\foobar\baz\level2
|
@todo_wine@A @pwd@\foobar\baz\level2@or_broken@A @pwd@\foobar\baz\level2@or_broken@A I @pwd@\foobar\baz\level2
|
||||||
@todo_wine@A R @pwd@\foobar\level1@or_broken@A R @pwd@\foobar\level1@or_broken@A R I @pwd@\foobar\level1
|
@todo_wine@A R @pwd@\foobar\level1@or_broken@A R @pwd@\foobar\level1@or_broken@A R I @pwd@\foobar\level1
|
||||||
@todo_wine@A R @pwd@\foobar\baz\level2@or_broken@A R @pwd@\foobar\baz\level2@or_broken@A R I @pwd@\foobar\baz\level2
|
@todo_wine@A R @pwd@\foobar\baz\level2@or_broken@A R @pwd@\foobar\baz\level2@or_broken@A R I @pwd@\foobar\baz\level2
|
||||||
@todo_wine@A @pwd@\foobar\bar@or_broken@A @pwd@\foobar\bar@or_broken@A I @pwd@\foobar\bar
|
A @pwd@\foobar\bar@or_broken@A @pwd@\foobar\bar@or_broken@A I @pwd@\foobar\bar
|
||||||
--- folders processing
|
--- folders processing
|
||||||
@pwd@\foobar@or_broken@ @pwd@\foobar@or_broken@ I @pwd@\foobar
|
@pwd@\foobar@or_broken@ @pwd@\foobar@or_broken@ I @pwd@\foobar
|
||||||
@todo_wine@ R @pwd@\foobar\baz@or_broken@ R @pwd@\foobar\baz@or_broken@ @pwd@\foobar\baz@or_broken@ R I @pwd@\foobar\baz
|
@todo_wine@ R @pwd@\foobar\baz@or_broken@ R @pwd@\foobar\baz@or_broken@ @pwd@\foobar\baz@or_broken@ R I @pwd@\foobar\baz
|
||||||
|
|
Loading…
Reference in New Issue