diff options
author | Ron Yorston <rmy@pobox.com> | 2022-05-19 13:02:26 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-05-19 15:43:23 +0100 |
commit | 3ab7b90aba64b2341f74d1e5b85a3f8fef216258 (patch) | |
tree | 7e7ad25c6f73f2fc89562b564e1f262e20406df1 /e2fsprogs/lsattr.c | |
parent | 055902330c448a5bbd59d12231bcb0aa00e50970 (diff) | |
download | busybox-w32-3ab7b90aba64b2341f74d1e5b85a3f8fef216258.tar.gz busybox-w32-3ab7b90aba64b2341f74d1e5b85a3f8fef216258.tar.bz2 busybox-w32-3ab7b90aba64b2341f74d1e5b85a3f8fef216258.zip |
lsattr: distinguish between junctions and symlinks
Use the new st_tag member of struct stat to display whether a
reparse point is a junction or a symlink.
Diffstat (limited to '')
-rw-r--r-- | e2fsprogs/lsattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c index 461ce39e6..e86807e85 100644 --- a/e2fsprogs/lsattr.c +++ b/e2fsprogs/lsattr.c | |||
@@ -53,8 +53,8 @@ enum { | |||
53 | 53 | ||
54 | static void list_attributes(const char *name) | 54 | static void list_attributes(const char *name) |
55 | { | 55 | { |
56 | unsigned fsflags; | ||
57 | #if !ENABLE_PLATFORM_MINGW32 | 56 | #if !ENABLE_PLATFORM_MINGW32 |
57 | unsigned fsflags; | ||
58 | int fd, r; | 58 | int fd, r; |
59 | 59 | ||
60 | /* There is no way to run needed ioctls on a symlink. | 60 | /* There is no way to run needed ioctls on a symlink. |
@@ -95,7 +95,7 @@ static void list_attributes(const char *name) | |||
95 | S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))) | 95 | S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))) |
96 | goto read_err; | 96 | goto read_err; |
97 | 97 | ||
98 | fsflags = st.st_attr; | 98 | #define fsflags &st |
99 | #endif | 99 | #endif |
100 | 100 | ||
101 | if (option_mask32 & OPT_PF_LONG) { | 101 | if (option_mask32 & OPT_PF_LONG) { |