From: Andre Noll Date: Sun, 5 Jul 2009 20:38:22 +0000 (+0200) Subject: com_stat(): Return a proper error message if an invalid option was given. X-Git-Tag: v0.4.0~59 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=672e27768e31a6eaa6854d4fc75ee6885db9abd8;p=paraslash.git com_stat(): Return a proper error message if an invalid option was given. --- diff --git a/command.c b/command.c index 70aefae1..90c4b608 100644 --- a/command.c +++ b/command.c @@ -367,6 +367,7 @@ int com_stat(struct rc4_context *rc4c, int argc, char * const * argv) parser_friendly = 1; continue; } + return -E_COMMAND_SYNTAX; } if (i != argc) return -E_COMMAND_SYNTAX;