-/* $OpenBSD: savecore.c,v 1.7 1996/10/15 10:17:32 deraadt Exp $ */
+/* $OpenBSD: savecore.c,v 1.8 1996/12/29 12:21:26 graichen Exp $ */
/* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */
/*-
(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) {
/* 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) {
-/* $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 $ */
/*-
#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 */
(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) {
/* 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) {