diff options
Diffstat (limited to 'usr/src/lib')
-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); } |