]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 4acfd515b1160bbbd642893b97e94b1c600c90ac..cc810467d825acf860346afeaac035aaf496f665 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);