diff options
author | Theodore Ts'o <tytso@mit.edu> | 1997-04-29 14:53:37 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1997-04-29 14:53:37 +0000 |
commit | 1e3472c5f37ca3686dd69b079d4d02a302f5798d (patch) | |
tree | f8c01b8e3875f425d9de9b3ef6171f739d1273e8 /misc/chattr.c | |
parent | fc6d9d519aef67735918bf02c0fa8c9222008f76 (diff) | |
download | android_external_e2fsprogs-1e3472c5f37ca3686dd69b079d4d02a302f5798d.tar.gz android_external_e2fsprogs-1e3472c5f37ca3686dd69b079d4d02a302f5798d.tar.bz2 android_external_e2fsprogs-1e3472c5f37ca3686dd69b079d4d02a302f5798d.zip |
Many files:
Checked in e2fsprogs 1.05
Diffstat (limited to 'misc/chattr.c')
-rw-r--r-- | misc/chattr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/chattr.c b/misc/chattr.c index a90bdf4d..b359248a 100644 --- a/misc/chattr.c +++ b/misc/chattr.c @@ -114,9 +114,9 @@ static int decode_arg (int * i, int argc, char ** argv) rem = 1; break; case 'v': + (*i)++; if (*i >= argc) usage (); - (*i)++; version = strtol (argv[*i], &tmp, 0); if (*tmp) { @@ -310,9 +310,9 @@ void main (int argc, char ** argv) fprintf (stderr, "= is incompatible with - and +\n"); exit (1); } - if (!(add || rem || set)) + if (!(add || rem || set || set_version)) { - fprintf (stderr, "Must use =, - or +\n"); + fprintf (stderr, "Must use '-v', =, - or +\n"); exit (1); } for (j = i; j < argc; j++) |