diff options
Diffstat (limited to 'e2fsprogs/lsattr.c')
-rw-r--r-- | e2fsprogs/lsattr.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c index 1312fe754..d2348b5f7 100644 --- a/e2fsprogs/lsattr.c +++ b/e2fsprogs/lsattr.c | |||
@@ -9,24 +9,26 @@ | |||
9 | * This file can be redistributed under the terms of the GNU General | 9 | * This file can be redistributed under the terms of the GNU General |
10 | * Public License | 10 | * Public License |
11 | */ | 11 | */ |
12 | //config:config LSATTR | ||
13 | //config: bool "lsattr" | ||
14 | //config: default y | ||
15 | //config: select PLATFORM_LINUX | ||
16 | //config: help | ||
17 | //config: lsattr lists the file attributes on a second extended file system. | ||
12 | 18 | ||
13 | /* | 19 | //applet:IF_LSATTR(APPLET(lsattr, BB_DIR_BIN, BB_SUID_DROP)) |
14 | * History: | 20 | |
15 | * 93/10/30 - Creation | 21 | //kbuild:lib-$(CONFIG_LSATTR) += lsattr.o e2fs_lib.o |
16 | * 93/11/13 - Replace stat() calls by lstat() to avoid loops | ||
17 | * 94/02/27 - Integrated in Ted's distribution | ||
18 | * 98/12/29 - Display version info only when -V specified (G M Sipe) | ||
19 | */ | ||
20 | 22 | ||
21 | //usage:#define lsattr_trivial_usage | 23 | //usage:#define lsattr_trivial_usage |
22 | //usage: "[-Radlv] [FILE]..." | 24 | //usage: "[-Radlv] [FILE]..." |
23 | //usage:#define lsattr_full_usage "\n\n" | 25 | //usage:#define lsattr_full_usage "\n\n" |
24 | //usage: "List file attributes on an ext2 fs\n" | 26 | //usage: "List ext2 file attributes\n" |
25 | //usage: "\n -R Recurse" | 27 | //usage: "\n -R Recurse" |
26 | //usage: "\n -a Don't hide entries starting with ." | 28 | //usage: "\n -a Don't hide entries starting with ." |
27 | //usage: "\n -d List directory entries instead of contents" | 29 | //usage: "\n -d List directory entries instead of contents" |
28 | //usage: "\n -l List long flag names" | 30 | //usage: "\n -l List long flag names" |
29 | //usage: "\n -v List the file's version/generation number" | 31 | //usage: "\n -v List version/generation number" |
30 | 32 | ||
31 | #include "libbb.h" | 33 | #include "libbb.h" |
32 | #include "e2fs_lib.h" | 34 | #include "e2fs_lib.h" |