]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 70aefae10738cd0eaed813e47fe17602b0c531c7..90c4b60846c5c6cade80316f57bef742fdc7e716 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;