aboutsummaryrefslogtreecommitdiff
path: root/toys/other/lsattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/lsattr.c')
-rw-r--r--toys/other/lsattr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/toys/other/lsattr.c b/toys/other/lsattr.c
index ceb14bdf..8b91ef78 100644
--- a/toys/other/lsattr.c
+++ b/toys/other/lsattr.c
@@ -4,6 +4,8 @@
* Copyright 2013 Kyungwan Han <asura321@gmail.com>
*
* No Standard.
+ *
+ * TODO cleanup
USE_LSATTR(NEWTOY(lsattr, "vldaR", TOYFLAG_BIN))
USE_CHATTR(NEWTOY(chattr, NULL, TOYFLAG_BIN))
@@ -15,6 +17,7 @@ config LSATTR
usage: lsattr [-Radlv] [Files...]
List file attributes on a Linux second extended file system.
+ (AacDdijsStu defined in chattr --help)
-R Recursively list attributes of directories and their contents.
-a List all files in directories, including files that start with '.'.
@@ -30,6 +33,9 @@ config CHATTR
Change file attributes on a Linux second extended file system.
+ -R Recurse.
+ -v Set the file's version/generation number.
+
Operators:
'-' Remove attributes.
'+' Add attributes.
@@ -47,9 +53,6 @@ config CHATTR
S Write file contents synchronously.
t Disable tail-merging of partial blocks with other files.
u Allow file to be undeleted.
- -R Recurse.
- -v Set the file's version/generation number.
-
*/
#define FOR_lsattr
#include "toys.h"