Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
b5b810ef
Commit
b5b810ef
authored
May 29, 2019
by
Erich E. Hoover
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wcmd: Display reparse point type in directory listings.
Signed-off-by:
Erich E. Hoover
<
erich.e.hoover@gmail.com
>
parent
2790394b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
directory.c
programs/cmd/directory.c
+26
-0
No files found.
programs/cmd/directory.c
View file @
b5b810ef
...
...
@@ -395,6 +395,32 @@ static DIRECTORY_STACK *WCMD_list_directory (DIRECTORY_STACK *inputparms, int le
WCMD_output
(
L"%1!*s!"
,
cur_width
-
tmp_width
,
L""
);
}
}
else
if
(
fd
[
i
].
dwFileAttributes
&
FILE_ATTRIBUTE_REPARSE_POINT
)
{
if
(
!
bare
)
{
const
WCHAR
*
type
;
switch
(
fd
[
i
].
dwReserved0
)
{
case
IO_REPARSE_TAG_MOUNT_POINT
:
type
=
L"<JUNCTION>"
;
break
;
case
IO_REPARSE_TAG_SYMLINK
:
default:
type
=
(
fd
[
i
].
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
?
L"<SYMLINKD>"
:
L"<SYMLINK>"
;
break
;
}
WCMD_output
(
L"%1!10s! %2!8s! %3!-14s!"
,
datestring
,
timestring
,
type
);
if
(
shortname
)
WCMD_output
(
L"%1!-13s!"
,
fd
[
i
].
cAlternateFileName
);
if
(
usernames
)
WCMD_output
(
L"%1!-23s!"
,
username
);
WCMD_output
(
L"%1"
,
fd
[
i
].
cFileName
);
}
else
{
if
(
!
((
lstrcmpW
(
fd
[
i
].
cFileName
,
L"."
)
==
0
)
||
(
lstrcmpW
(
fd
[
i
].
cFileName
,
L".."
)
==
0
)))
{
WCMD_output
(
L"%1%2"
,
recurse
?
inputparms
->
dirName
:
L""
,
fd
[
i
].
cFileName
);
}
else
{
addNewLine
=
FALSE
;
}
}
}
else
if
(
fd
[
i
].
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
dir_count
++
;
...
...
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