diff options
author | Ron Yorston <rmy@pobox.com> | 2022-05-19 13:09:45 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-05-19 15:43:23 +0100 |
commit | eca8fe9c69bd15760ba5206f9ddd7bbf825bcda1 (patch) | |
tree | 9f5549a9bd163e7e1e81816f40ee36d21cb0dac9 | |
parent | 3ab7b90aba64b2341f74d1e5b85a3f8fef216258 (diff) | |
download | busybox-w32-eca8fe9c69bd15760ba5206f9ddd7bbf825bcda1.tar.gz busybox-w32-eca8fe9c69bd15760ba5206f9ddd7bbf825bcda1.tar.bz2 busybox-w32-eca8fe9c69bd15760ba5206f9ddd7bbf825bcda1.zip |
chattr,lsattr: improve help messages
List all attributes in the help from lsattr.
Minor changes to attribute names in output.
-rw-r--r-- | e2fsprogs/chattr.c | 3 | ||||
-rw-r--r-- | e2fsprogs/e2fs_lib.c | 8 | ||||
-rw-r--r-- | e2fsprogs/lsattr.c | 21 |
3 files changed, 26 insertions, 6 deletions
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c index e35b9d223..fc500f229 100644 --- a/e2fsprogs/chattr.c +++ b/e2fsprogs/chattr.c | |||
@@ -39,8 +39,8 @@ | |||
39 | //usage: "\n -p NUM Set project number" | 39 | //usage: "\n -p NUM Set project number" |
40 | //usage: ) | 40 | //usage: ) |
41 | //-V, -f accepted but ignored | 41 | //-V, -f accepted but ignored |
42 | //usage: "\nModifiers:" | ||
43 | //usage: IF_NOT_PLATFORM_MINGW32( | 42 | //usage: IF_NOT_PLATFORM_MINGW32( |
43 | //usage: "\nModifiers:" | ||
44 | //usage: "\n -,+,= Remove/add/set attributes" | 44 | //usage: "\n -,+,= Remove/add/set attributes" |
45 | //usage: "\nAttributes:" | 45 | //usage: "\nAttributes:" |
46 | //usage: "\n A No atime" | 46 | //usage: "\n A No atime" |
@@ -66,7 +66,6 @@ | |||
66 | //usage: ) | 66 | //usage: ) |
67 | //usage: IF_PLATFORM_MINGW32( | 67 | //usage: IF_PLATFORM_MINGW32( |
68 | //usage: "\n -,+ Remove/add attributes" | 68 | //usage: "\n -,+ Remove/add attributes" |
69 | //usage: "\nAttributes:" | ||
70 | //usage: "\n r Read only" | 69 | //usage: "\n r Read only" |
71 | //usage: "\n h Hidden" | 70 | //usage: "\n h Hidden" |
72 | //usage: "\n s System" | 71 | //usage: "\n s System" |
diff --git a/e2fsprogs/e2fs_lib.c b/e2fsprogs/e2fs_lib.c index 07de5eda7..031f5e06b 100644 --- a/e2fsprogs/e2fs_lib.c +++ b/e2fsprogs/e2fs_lib.c | |||
@@ -88,20 +88,20 @@ const uint32_t e2attr_flags_value[] = { | |||
88 | }; | 88 | }; |
89 | 89 | ||
90 | const char e2attr_flags_sname[] ALIGN1 = | 90 | const char e2attr_flags_sname[] ALIGN1 = |
91 | "roecSrhsatn"; | 91 | "RoecSrhsatn"; |
92 | 92 | ||
93 | static const char e2attr_flags_lname[] ALIGN1 = | 93 | static const char e2attr_flags_lname[] ALIGN1 = |
94 | "Reparse" "\0" | 94 | "Reparse_Point" "\0" |
95 | "Offline" "\0" | 95 | "Offline" "\0" |
96 | "Encrypted" "\0" | 96 | "Encrypted" "\0" |
97 | "Compressed" "\0" | 97 | "Compressed" "\0" |
98 | "Sparse" "\0" | 98 | "Sparse" "\0" |
99 | "Readonly" "\0" | 99 | "Read_Only" "\0" |
100 | "Hidden" "\0" | 100 | "Hidden" "\0" |
101 | "System" "\0" | 101 | "System" "\0" |
102 | "Archive" "\0" | 102 | "Archive" "\0" |
103 | "Temporary" "\0" | 103 | "Temporary" "\0" |
104 | "Notindexed" "\0" | 104 | "Not_Indexed" "\0" |
105 | /* Another trailing NUL is added by compiler */; | 105 | /* Another trailing NUL is added by compiler */; |
106 | #endif | 106 | #endif |
107 | 107 | ||
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c index e86807e85..a6c4a27e9 100644 --- a/e2fsprogs/lsattr.c +++ b/e2fsprogs/lsattr.c | |||
@@ -28,7 +28,12 @@ | |||
28 | //usage: "[-Radl] [FILE]..." | 28 | //usage: "[-Radl] [FILE]..." |
29 | //usage: ) | 29 | //usage: ) |
30 | //usage:#define lsattr_full_usage "\n\n" | 30 | //usage:#define lsattr_full_usage "\n\n" |
31 | //usage: IF_NOT_PLATFORM_MINGW32( | ||
31 | //usage: "List ext2 file attributes\n" | 32 | //usage: "List ext2 file attributes\n" |
33 | //usage: ) | ||
34 | //usage: IF_PLATFORM_MINGW32( | ||
35 | //usage: "List file attributes\n" | ||
36 | //usage: ) | ||
32 | //usage: "\n -R Recurse" | 37 | //usage: "\n -R Recurse" |
33 | //usage: "\n -a Include names starting with ." | 38 | //usage: "\n -a Include names starting with ." |
34 | //usage: "\n -d List directory names, not contents" | 39 | //usage: "\n -d List directory names, not contents" |
@@ -38,6 +43,22 @@ | |||
38 | //usage: "\n -p List project ID" | 43 | //usage: "\n -p List project ID" |
39 | //usage: "\n -v List version/generation number" | 44 | //usage: "\n -v List version/generation number" |
40 | //usage: ) | 45 | //usage: ) |
46 | //usage: IF_PLATFORM_MINGW32( | ||
47 | //usage: "\n\nAttributes:\n" | ||
48 | //usage: "\n j Junction" | ||
49 | //usage: "\n l Symbolic link" | ||
50 | //usage: "\n R Reparse point" | ||
51 | //usage: "\n o Offline" | ||
52 | //usage: "\n e Encrypted" | ||
53 | //usage: "\n c Compressed" | ||
54 | //usage: "\n S Sparse" | ||
55 | //usage: "\n r Read only" | ||
56 | //usage: "\n h Hidden" | ||
57 | //usage: "\n s System" | ||
58 | //usage: "\n a Archive" | ||
59 | //usage: "\n t Temporary" | ||
60 | //usage: "\n n Not indexed" | ||
61 | //usage: ) | ||
41 | 62 | ||
42 | #include "libbb.h" | 63 | #include "libbb.h" |
43 | #include "e2fs_lib.h" | 64 | #include "e2fs_lib.h" |