Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108552127
D29217.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
389 B
Referenced Files
None
Subscribers
None
D29217.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D29217: linux(4): make getcwd(4) return ERANGE instead of ENOMEM
Attached
Detach File
Event Timeline
Log In to Comment