diff options
author | Jim Meyering <jim@meyering.net> | 1996-07-10 03:15:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-07-10 03:15:39 +0000 |
commit | 84b6d13a3c7cbd6b55491aa01309d8828227c708 (patch) | |
tree | 8d47d37b46e396a3db270425d048f5daa1e1e050 /src | |
parent | fb604ebdf431110773f737e63252f0737d085792 (diff) | |
download | coreutils-84b6d13a3c7cbd6b55491aa01309d8828227c708.tar.xz |
(dc_parse_stream): Don't give `unrecognized keyword'
message unless we've processed a matching TERM directive.
Diffstat (limited to 'src')
-rw-r--r-- | src/dircolors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dircolors.c b/src/dircolors.c index b157b3364..927a95f41 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -348,7 +348,7 @@ dc_parse_stream (FILE *fp, const char *filename) } } - if (unrecognized) + if (unrecognized && (state == ST_TERMSURE || state == ST_TERMYES)) { error (0, 0, _("%s:%lu: unrecognized keyword `%s'"), filename, (long unsigned) line_number, keywd); |