[PATCH] Fix unkown command error printing

From: Julien Danjou
Date: Wed Feb 18 2009 - 10:25:05 EST


Patch upon git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git

Signed-off-by: Julien Danjou <julien@xxxxxxxxxxx>
---
brctl/brctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/brctl/brctl.c b/brctl/brctl.c
index 454b8dd..79f07b2 100644
--- a/brctl/brctl.c
+++ b/brctl/brctl.c
@@ -69,7 +69,7 @@ int main(int argc, char *const* argv)
argc -= optind;
argv += optind;
if ((cmd = command_lookup(*argv)) == NULL) {
- fprintf(stderr, "never heard of command [%s]\n", argv[1]);
+ fprintf(stderr, "never heard of command [%s]\n", argv[0]);
goto help;
}

--
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html