summaryrefslogtreecommitdiff
path: root/sbin/savecore/savecore_old.c
diff options
context:
space:
mode:
authorThomas Graichen <graichen@cvs.openbsd.org>1996-12-29 12:21:30 +0000
committerThomas Graichen <graichen@cvs.openbsd.org>1996-12-29 12:21:30 +0000
commitb925c32c5a9400912756722a20f0fbde0bce640e (patch)
tree4fe93f0a0a77308d251998a0c05be22447a9713b /sbin/savecore/savecore_old.c
parentdc0ba1a67799fa53e2969c9b5f42cba1c2ee6321 (diff)
remove one / from the printf of the filenames (_PATH_UNIX begings with a
slash - /bsd so we don't need an extra slash there)
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 69d0c081206..7580e135ea2 100644
--- a/sbin/savecore/savecore_old.c
+++ b/sbin/savecore/savecore_old.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore_old.c,v 1.5 1996/10/15 10:17:34 deraadt Exp $ */
+/* $OpenBSD: savecore_old.c,v 1.6 1996/12/29 12:21:29 graichen Exp $ */
/* $NetBSD: savecore_old.c,v 1.1.1.1 1996/03/16 10:25:11 leo Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#else
-static char rcsid[] = "$OpenBSD: savecore_old.c,v 1.5 1996/10/15 10:17:34 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: savecore_old.c,v 1.6 1996/12/29 12:21:29 graichen Exp $";
#endif
#endif /* not lint */
@@ -372,7 +372,7 @@ err1: syslog(LOG_WARNING, "%s: %s", path, strerror(errno));
(void)fclose(fp);
/* Create the core file. */
- (void)snprintf(path, sizeof(path), "%s/%s.%d.core%s",
+ (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) {
@@ -428,7 +428,7 @@ err2: syslog(LOG_WARNING,
/* Copy the kernel. */
ifd = Open(kernel ? kernel : _PATH_UNIX, O_RDONLY);
- (void)snprintf(path, sizeof(path), "%s/%s.%d%s",
+ (void)snprintf(path, sizeof(path), "%s%s.%d%s",
dirname, _PATH_UNIX, bounds, compress ? ".Z" : "");
if (compress) {
if ((fp = zopen(path, "w", 0)) == NULL) {