Page MenuHomeFreeBSD

D29217.diff
No OneTemporary

D29217.diff

diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c
--- a/sys/compat/linux/linux_getcwd.c
+++ b/sys/compat/linux/linux_getcwd.c
@@ -74,6 +74,8 @@
buf = malloc(buflen, M_TEMP, M_WAITOK);
error = vn_getcwd(buf, &retbuf, &buflen);
+ if (error == ENOMEM)
+ error = ERANGE;
if (error == 0) {
error = copyout(retbuf, uap->buf, buflen);
if (error == 0)

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 6:35 AM (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16188395
Default Alt Text
D29217.diff (389 B)

Event Timeline