diff options
author | Theodore Ts'o <tytso@mit.edu> | 1997-04-26 13:34:30 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1997-04-26 13:34:30 +0000 |
commit | f3db3566b5e1342e49dffc5ec3f418a838584194 (patch) | |
tree | 1f6c5daaee7f33beb697143a8891da8a55752dd6 /misc/lsattr.c | |
parent | 6f4a109706f51ad11b9fff0983c140ab62549d2f (diff) | |
download | e2fsprogs-f3db3566b5e1342e49dffc5ec3f418a838584194.tar.gz |
Many files:
Checkin of e2fsprogs 0.5b
Diffstat (limited to 'misc/lsattr.c')
-rw-r--r-- | misc/lsattr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/lsattr.c b/misc/lsattr.c index ae337d67..6ce190c4 100644 --- a/misc/lsattr.c +++ b/misc/lsattr.c @@ -35,12 +35,13 @@ const char * program_name = "lsattr"; int all = 0; int d_opt = 0; +int l_opt = 0; int recursive = 0; int v_opt = 0; static void volatile usage (void) { - fprintf (stderr, "Usage: %s [-Radv] [files...]\n", program_name); + fprintf (stderr, "Usage: %s [-Radlv] [files...]\n", program_name); exit (1); } @@ -59,7 +60,7 @@ static void list_attributes (const char * name) { if (v_opt) printf ("%5lu ", version); - print_flags (stdout, flags); + print_flags (stdout, flags, l_opt); printf (" %s\n", name); } } @@ -128,6 +129,9 @@ void main (int argc, char ** argv) case 'd': d_opt = 1; break; + case 'l': + l_opt = 1; + break; case 'v': v_opt = 1; break; |