Summary: | `locale -k` with an invalid keyword exits with 0 | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | AJ Jordan <alex+freebsd> | ||||
Component: | bin | Assignee: | Yuri Pankov <yuripv> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | akos.somfai, bugs, emaste, linimon, yuripv | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | CURRENT | Flags: | yuripv:
mfc-stable12+
|
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
AJ Jordan
2019-11-12 05:37:45 UTC
An identical bug also exists in NetBSD. See https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54692 Created attachment 215500 [details]
proposed patch for locale
Providing patch where locale returns with error in case of invalid keyword/category.
A commit references this bug: Author: yuripv Date: Sat Jun 13 08:37:25 UTC 2020 New revision: 362146 URL: https://svnweb.freebsd.org/changeset/base/362146 Log: locale: exit 1 if unknown keyword was specified PR: 241906 Submitted by: Akos Somfai <akos.somfai@gmail.com> Changes: head/usr.bin/locale/locale.c head/usr.bin/locale/tests/locale_test.sh Committed, thank you! To committer: does this need an MFC, or can this PR just be closed? Will MFC shortly. A commit references this bug: Author: yuripv Date: Sun Jul 26 19:18:56 UTC 2020 New revision: 363577 URL: https://svnweb.freebsd.org/changeset/base/363577 Log: MFC r362146: locale: exit 1 if unknown keyword was specified PR: 241906 Submitted by: Akos Somfai <akos.somfai@gmail.com> Changes: _U stable/12/ stable/12/usr.bin/locale/locale.c stable/12/usr.bin/locale/tests/locale_test.sh |