]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): make getcwd(2) return ERANGE instead of ENOMEM
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Fri, 12 Mar 2021 15:31:37 +0000 (15:31 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Tue, 16 Mar 2021 18:37:57 +0000 (18:37 +0000)
commit56dd03e0f2b17e703ba8daad8bc9ab21a761a461
tree3bc9eedcf32a92fe299a0d5a07b5699a4c1a0b63
parent1aa6884953a93674368b6f02377f3a24e2702a6a
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)
sys/compat/linux/linux_getcwd.c