From b635d7d83e5475ae471536ce9275be14e18fd539 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 25 Nov 2007 22:24:54 +0100 Subject: [PATCH] The setatt command needs at least two arguments. --- attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5