git: DragonFly_RELEASE_6_4 catopen(3): align returned errors with POSIX.1-2024
Aaron LI
aly at crater.dragonflybsd.org
Thu Nov 12 23:21:39 PST 2026
commit 8d28cc52fd4e877cc67abe9d311e26f3ae66b7a0
Author: David Bidner <david at crap.solutions>
Date: Mon Oct 5 21:06:51 2026 +0800
catopen(3): align returned errors with POSIX.1-2024
Return ENOENT instead of EFTYPE for invalid/empty names, non-existent
catalogue files, and bad catalogue headers. Require the complete header
and reject sizes that exceed mmap() limit.
Also save the errno in handling the open() failure.
Derived-from: FreeBSD (commit 1176390d2d2bbb1e207c840d1f7a66a6ac1096ff)
Reported-by: pmjdebruijn
Bug: https://bugs.dragonflybsd.org/issues/3393
Summary of changes:
lib/libc/nls/catopen.3 | 12 ++++--------
lib/libc/nls/msgcat.c | 41 ++++++++++++++++++++++++-----------------
2 files changed, 28 insertions(+), 25 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8d28cc52fd4e877cc67abe9d311e26f3ae66b7a0
--
DragonFly BSD source repository
More information about the Commits
mailing list