Blame SOURCES/bridge-utils-1.5-fix-error-message-for-incorrect-command.patch

bdf832
From c7ed0996ef58b497d3d30be802ab5ae6c37099b5 Mon Sep 17 00:00:00 2001
bdf832
From: Stephen Hemminger <shemminger@vyatta.com>
bdf832
Date: Tue, 3 May 2011 09:49:57 -0700
bdf832
Subject: [PATCH 2/3] Fix error message for incorrect command
bdf832
bdf832
Debian bug 406907
bdf832
Error message was refering to incorrect command argument.
bdf832
bdf832
Signed-off-by: Petr Sabata <contyk@redhat.com>
bdf832
---
bdf832
 brctl/brctl.c |    2 +-
bdf832
 1 files changed, 1 insertions(+), 1 deletions(-)
bdf832
bdf832
diff --git a/brctl/brctl.c b/brctl/brctl.c
bdf832
index 454b8dd..46ca352 100644
bdf832
--- a/brctl/brctl.c
bdf832
+++ b/brctl/brctl.c
bdf832
@@ -69,7 +69,7 @@ int main(int argc, char *const* argv)
bdf832
 	argc -= optind;
bdf832
 	argv += optind;
bdf832
 	if ((cmd = command_lookup(*argv)) == NULL) {
bdf832
-		fprintf(stderr, "never heard of command [%s]\n", argv[1]);
bdf832
+		fprintf(stderr, "never heard of command [%s]\n", *argv);
bdf832
 		goto help;
bdf832
 	}
bdf832
 	
bdf832
-- 
bdf832
1.7.5.2
bdf832