diff options
Diffstat (limited to 'sbin/savecore/savecore_old.c')
-rw-r--r-- | sbin/savecore/savecore_old.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/savecore/savecore_old.c b/sbin/savecore/savecore_old.c index fa23de1661a..dd6abc42851 100644 --- a/sbin/savecore/savecore_old.c +++ b/sbin/savecore/savecore_old.c @@ -368,8 +368,8 @@ err1: syslog(LOG_WARNING, "%s: %s", path, strerror(errno)); (void)fclose(fp); /* Create the core file. */ - (void)snprintf(path, sizeof(path), "%s/bsd.%d.core%s", - dirname, bounds, compress ? ".Z" : ""); + (void)snprintf(path, sizeof(path), "%s/%s.%d.core%s", + dirname, _PATH_UNIX, bounds, compress ? ".Z" : ""); if (compress) { if ((fp = zopen(path, "w", 0)) == NULL) { syslog(LOG_ERR, "%s: %s", path, strerror(errno)); @@ -424,8 +424,8 @@ err2: syslog(LOG_WARNING, /* Copy the kernel. */ ifd = Open(kernel ? kernel : _PATH_UNIX, O_RDONLY); - (void)snprintf(path, sizeof(path), "%s/bsd.%d%s", - dirname, bounds, compress ? ".Z" : ""); + (void)snprintf(path, sizeof(path), "%s/%s.%d%s", + dirname, _PATH_UNIX, bounds, compress ? ".Z" : ""); if (compress) { if ((fp = zopen(path, "w", 0)) == NULL) { syslog(LOG_ERR, "%s: %s", path, strerror(errno)); |