Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102129029
D34821.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34821.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
@@ -318,7 +318,7 @@
static off_t
saved_dump_size(int savedirfd, int bounds)
{
- static char path[PATH_MAX];
+ char path[32];
off_t dumpsize;
dumpsize = 0;
@@ -342,7 +342,7 @@
static void
saved_dump_remove(int savedirfd, int bounds)
{
- static char path[PATH_MAX];
+ char path[32];
(void)snprintf(path, sizeof(path), "info.%d", bounds);
(void)unlinkat(savedirfd, path, 0);
@@ -697,10 +697,9 @@
static void
DoFile(const char *savedir, int savedirfd, const char *device)
{
- xo_handle_t *xostdout, *xoinfo;
- static char infoname[PATH_MAX], corename[PATH_MAX], linkname[PATH_MAX];
- static char keyname[PATH_MAX];
static char *buf = NULL;
+ xo_handle_t *xostdout, *xoinfo;
+ char infoname[32], corename[32], linkname[32], keyname[32];
char *temp = NULL;
struct kerneldumpheader kdhf, kdhl;
uint8_t *dumpkey;
@@ -719,7 +718,7 @@
xostdout = xo_create_to_file(stdout, XO_STYLE_TEXT, 0);
if (xostdout == NULL) {
- logmsg(LOG_ERR, "%s: %m", infoname);
+ logmsg(LOG_ERR, "xo_create_to_file() failed: %m");
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 11:41 PM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14545427
Default Alt Text
D34821.diff (1 KB)
Attached To
Mode
D34821: savecore: decrease filename buffer sizes
Attached
Detach File
Event Timeline
Log In to Comment