Commit b5b810ef authored by Erich E. Hoover's avatar Erich E. Hoover Committed by Vitaly Lipatov

wcmd: Display reparse point type in directory listings.

parent 2790394b
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment