Bug 1034049
Summary: | ip -6 addrlabel return incorrect error message | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Hangbin Liu <haliu> | ||||
Component: | iproute | Assignee: | Pavel Šimerda (pavlix) <psimerda> | ||||
Status: | CLOSED ERRATA | QA Contact: | Jaroslav Aster <jaster> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.6 | CC: | jaster, ksrot, thozza | ||||
Target Milestone: | rc | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | iproute-2.6.32-35.el6 | Doc Type: | Bug Fix | ||||
Doc Text: |
Previously, the "ip -6 addrlabel" command returned an incorrect error message that contained "inet" instead of "inet6". To fix this bug, the error message has been changed to include "inet" for IPv4 addresses and "inet6" for IPv6 addresses.
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 1100271 (view as bug list) | Environment: | |||||
Last Closed: | 2015-07-22 06:40:34 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1100271 | ||||||
Attachments: |
|
Description
Hangbin Liu
2013-11-25 07:46:44 UTC
Created attachment 828568 [details]
Display the correct inet/inet6 string
How about correct the address message at the same time diff --git a/lib/utils.c b/lib/utils.c index 4e9c719..eb92414 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -487,7 +487,7 @@ int get_addr(inet_prefix *dst, const char *arg, int family) exit(1); } if (get_addr_1(dst, arg, family)) { - fprintf(stderr, "Error: an inet address is expected rather than \"%s\".\n", arg); + fprintf(stderr, "Error: an %s address is expected rather than \"%s\".\n", (family == AF_INET6 ? "inet6" : "inet") ,arg); exit(1); } return 0; @@ -500,7 +500,7 @@ int get_prefix(inet_prefix *dst, char *arg, int family) exit(1); } if (get_prefix_1(dst, arg, family)) { - fprintf(stderr, "Error: an inet prefix is expected rather than \"%s\".\n", arg); + fprintf(stderr, "Error: an %s prefix is expected rather than \"%s\".\n", (family == AF_INET6 ? "inet6" : "inet") ,arg); exit(1); } return 0; Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1331.html |