HomeFreeBSD

linux(4): make getcwd(2) return ERANGE instead of ENOMEM

Description

linux(4): make getcwd(2) return ERANGE instead of ENOMEM

For native FreeBSD binaries, the return value from __getcwd(2)
doesn't really matter, as the libc wrapper takes over and returns
the proper errno.

Approved by: re (gjb)
PR: kern/254120
Reported By: Alex S <iwtcex@gmail.com>
Reviewed By: kib
Sponsored By: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29217

(cherry picked from commit 0dfbdd9fc269f0438ffcc31632d35234a90584ad)
(cherry picked from commit ab1a91d95872e59db3d476be4fefb0b58df3afc4)

Details

Provenance
traszAuthored on Mar 12 2021, 3:31 PM
Reviewer
kib
Differential Revision
D29217: linux(4): make getcwd(4) return ERANGE instead of ENOMEM
Parents
R10:1aa6884953a9: development(7): update to reflect Git transition
Branches
Unknown
Tags
Unknown