com_stat(): Return a proper error message if an invalid option was given.
authorAndre Noll <maan@systemlinux.org>
Sun, 5 Jul 2009 20:38:22 +0000 (22:38 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 5 Jul 2009 20:38:22 +0000 (22:38 +0200)
command.c

index 70aefae..90c4b60 100644 (file)
--- 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;