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

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