Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145509999
D8096.id20931.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
662 B
Referenced Files
None
Subscribers
None
D8096.id20931.diff
View Options
Index: head/lib/libjail/jail.c
===================================================================
--- head/lib/libjail/jail.c
+++ head/lib/libjail/jail.c
@@ -223,11 +223,16 @@
/* Get the next parameter. */
mlen2 = sizeof(mib2);
if (sysctl(mib1, mlen1 + 2, mib2, &mlen2, NULL, 0) < 0) {
+ if (errno == ENOENT) {
+ /* No more entries. */
+ break;
+ }
snprintf(jail_errmsg, JAIL_ERRMSGLEN,
"sysctl(0.2): %s", strerror(errno));
goto error;
}
- if (mib2[0] != mib1[2] || mib2[1] != mib1[3] ||
+ if (mib2[0] != mib1[2] ||
+ mib2[1] != mib1[3] ||
mib2[2] != mib1[4])
break;
/* Convert it to an ascii name. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 21, 6:50 PM (3 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28926327
Default Alt Text
D8096.id20931.diff (662 B)
Attached To
Mode
D8096: Fix libjail reached latest sysctl entry
Attached
Detach File
Event Timeline
Log In to Comment