]> 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>
Fri, 12 Mar 2021 15:31:45 +0000 (15:31 +0000)
commit0dfbdd9fc269f0438ffcc31632d35234a90584ad
tree5c053b70e0794a12a042a51d0a2a4a4880e959b8
parentcecfaf9bede9665d6a10f1e575cd5d575450cff7
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
sys/compat/linux/linux_getcwd.c