diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/attr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/attr.c b/tools/attr.c index d68a62c..c8aa0b4 100644 --- a/tools/attr.c +++ b/tools/attr.c @@ -157,6 +157,10 @@ main(int argc, char **argv) */ switch (opflag) { case SETOP: + if (!attrname) { + fprintf(stderr, _("-V only allowed with -s\n")); + usage(); + } if (attrvalue == NULL) { attrvalue = malloc(ATTR_MAX_VALUELEN); if (attrvalue == NULL) { |