Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6520f191
Commit
6520f191
authored
Mar 26, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Mar 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attrib: Dislay attribute flags in the right order.
parent
5d57fc99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
attrib.c
programs/attrib/attrib.c
+5
-5
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+3
-3
No files found.
programs/attrib/attrib.c
View file @
6520f191
...
@@ -199,22 +199,22 @@ int wmain(int argc, WCHAR *argv[])
...
@@ -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
);
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
6520f191
...
@@ -696,9 +696,9 @@ bar\baz removed
...
@@ -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
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment