]> 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>
Mon, 15 Mar 2021 13:00:17 +0000 (13:00 +0000)
commitab1a91d95872e59db3d476be4fefb0b58df3afc4
tree73ac7f62ec433ace8ab187a6faa83a02860672d3
parent0264d12ee865658b58f647e50fe2f7164873db66
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.

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)
sys/compat/linux/linux_getcwd.c