opnsense-src/usr.bin/sort
Mark Johnston 1a233fd317 sort: Fix message catalogue usage
- Check that catopen() succeeded before calling catclose().  musl will
  crash in the latter if the catalogue descriptor is -1.
- Keep the message catalogue open for most of sort(1)'s actual
  operation.
- Don't use catgets(3) to print error messages if catopen(3) had failed.

Reviewed by:	arichardson, emaste
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 8d8b9b560a)
2022-02-04 09:58:13 -05:00
..
nls
tests sort(1): Add bits to allow easy checking against NetBSD tests 2018-06-20 03:10:49 +00:00
bwstring.c sort: Fix random sort 2021-11-01 09:10:54 -04:00
bwstring.h usr.bin/sort: Avoid UBSan errors 2021-08-05 09:57:45 +01:00
coll.c sort(1): Memoize MD5 computation to reduce repeated computation 2019-04-13 04:42:17 +00:00
coll.h sort(1): Memoize MD5 computation to reduce repeated computation 2019-04-13 04:42:17 +00:00
file.c sort(1): Remove duplicate option check 2020-09-08 15:01:49 +00:00
file.h sort(1): Fix -m when only implicit stdin is used for input 2018-06-20 03:31:19 +00:00
Makefile usr.bin/sort: Avoid UBSan errors 2021-08-05 09:57:45 +01:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
mem.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mem.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
radixsort.c sort: Cache value of MB_CUR_MAX 2021-05-20 09:15:43 -04:00
radixsort.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
sort.1.in Adjust history, info source from v1's manuals 2019-09-04 13:44:46 +00:00
sort.c sort: Fix message catalogue usage 2022-02-04 09:58:13 -05:00
sort.h sort: Fix message catalogue usage 2022-02-04 09:58:13 -05:00
vsort.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
vsort.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00