From: Andre Noll Date: Sun, 25 Nov 2007 21:24:54 +0000 (+0100) Subject: The setatt command needs at least two arguments. X-Git-Tag: v0.3.0~81 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=b635d7d83e5475ae471536ce9275be14e18fd539;p=paraslash.git The setatt command needs at least two arguments. --- diff --git a/attribute.c b/attribute.c index 4acfd515..cc810467 100644 --- a/attribute.c +++ b/attribute.c @@ -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);