diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2015-07-18 15:22:41 +0300 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2015-07-30 16:57:56 -0400 |
commit | 7bbc5723436be52a39f5c04d60cc236082c52d5a (patch) | |
tree | a1bcf41092bb27bf52cb59919d0bc0dfdf540451 | |
parent | 18961ad2c52f9d85e1f18c75f82d40639f483e1a (diff) | |
download | illumos-joyent-7bbc5723436be52a39f5c04d60cc236082c52d5a.tar.gz |
6058 ipadm doesn't accept "ALL" as valid field name
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r-- | usr/src/lib/libinetutil/common/ofmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/lib/libinetutil/common/ofmt.c b/usr/src/lib/libinetutil/common/ofmt.c index 9d5ad12e53..63d744cdc9 100644 --- a/usr/src/lib/libinetutil/common/ofmt.c +++ b/usr/src/lib/libinetutil/common/ofmt.c @@ -200,7 +200,7 @@ ofmt_open(const char *str, const ofmt_field_t *template, uint_t flags, */ if (str == NULL || str[0] == '\0') return (OFMT_EPARSENONE); - if (strcmp(str, "all") == 0) + if (strcasecmp(str, "all") == 0) return (OFMT_EPARSEALL); if (wrap) return (OFMT_EPARSEWRAP); @@ -213,10 +213,10 @@ ofmt_open(const char *str, const ofmt_field_t *template, uint_t flags, * split str into the columns selected, or construct the * full set of columns (equivalent to -o all). */ - if (str != NULL && strcmp(str, "all") != 0) { + if (str != NULL && strcasecmp(str, "all") != 0) { sp = split_str(str, nfields); } else { - if (parsable || (str != NULL && strcmp(str, "all") == 0)) + if (parsable || (str != NULL && strcasecmp(str, "all") == 0)) maxcols = 0; sp = split_fields(template, nfields, maxcols); } |