From 672e27768e31a6eaa6854d4fc75ee6885db9abd8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 5 Jul 2009 22:38:22 +0200 Subject: [PATCH] com_stat(): Return a proper error message if an invalid option was given. --- command.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5