summaryrefslogtreecommitdiff
path: root/sbin/savecore/savecore_old.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-23 13:16:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-23 13:16:23 +0000
commite5821700a003322fc5dae79fa5f6c836ff6aa3f4 (patch)
tree730b819d5dfd5bb3b81634a069327c9a5484668f /sbin/savecore/savecore_old.c
parentb031246546788a32f76ceb4520c85835b0250faa (diff)
use _PATH_UNIX for kernel name
Diffstat (limited to 'sbin/savecore/savecore_old.c')
-rw-r--r--sbin/savecore/savecore_old.c8
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));