Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107333436
D34783.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
558 B
Referenced Files
None
Subscribers
None
D34783.diff
View Options
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -257,6 +257,8 @@
ret = (int)strtol(buf, NULL, 10);
if (ret == 0 && (errno == EINVAL || errno == ERANGE))
logmsg(LOG_WARNING, "invalid value found in bounds, using 0");
+ if (maxdumps > 0 && ret == maxdumps)
+ ret = 0;
fclose(fp);
return (ret);
}
@@ -721,9 +723,6 @@
return;
}
- if (maxdumps > 0 && bounds == maxdumps)
- bounds = 0;
-
if (buf == NULL) {
buf = malloc(BUFFERSIZE);
if (buf == NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 3:30 PM (19 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15783550
Default Alt Text
D34783.diff (558 B)
Attached To
Mode
D34783: savecore: fold maxdumps check into getbounds()
Attached
Detach File
Event Timeline
Log In to Comment