The setatt command needs at least two arguments.
authorAndre Noll <maan@systemlinux.org>
Sun, 25 Nov 2007 21:24:54 +0000 (22:24 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 Nov 2007 21:24:54 +0000 (22:24 +0100)
attribute.c

index 4acfd51..cc81046 100644 (file)
@@ -273,7 +273,7 @@ static int com_setatt_callback(const struct osl_object *query,
 
 int com_setatt(__a_unused int fd, int argc, char * const * const argv)
 {
-       if (argc < 2)
+       if (argc < 3)
                return -E_ATTR_SYNTAX;
        return send_standard_callback_request(argc - 1, argv + 1, com_setatt_callback,
                NULL);