108b02f999
- Upgrade to GIT 20090115 (#225735, #477498) - Removed bogus stated need of DEVNAME in -h/--help (#472038) - Removed completely needless INSTALL file from %doc (#472034)
18 lines
762 B
Diff
18 lines
762 B
Diff
Patch by Robert Scheck <robert@fedoraproject.org> for ethtool >= 6, which removes
|
|
the bogus -h/--help usage stating, that DEVNAME is required for help. For further
|
|
information, please have a look to Red Hat Bugzilla ID #472038.
|
|
|
|
--- ethtool-6/ethtool.c 2009-01-15 23:14:44.000000000 +0100
|
|
+++ ethtool-6/ethtool.c.help_usage 2009-01-15 23:59:20.000000000 +0100
|
|
@@ -201,8 +201,9 @@
|
|
"Usage:\n"
|
|
"ethtool DEVNAME\tDisplay standard information about device\n");
|
|
for (i = 0; args[i].srt; i++) {
|
|
- fprintf(stderr, " ethtool %s|%s DEVNAME\t%s\n%s",
|
|
+ fprintf(stderr, " ethtool %s|%s %s\t%s\n%s",
|
|
args[i].srt, args[i].lng,
|
|
+ strstr(args[i].srt, "-h") ? "\t" : "DEVNAME",
|
|
args[i].help,
|
|
args[i].opthelp ? args[i].opthelp : "");
|
|
}
|