diff options
author | 1996-02-20 03:00:45 +0000 | |
---|---|---|
committer | 1996-02-20 03:00:45 +0000 | |
commit | 22b5262b35eca124a1a9b6938f6f246e6ba8e89d (patch) | |
tree | 81c7ae364ee5c4e401f055b269cadbe79ee9a225 | |
parent | Sync. w/ NetBSD: vm prototype changes. (diff) | |
download | wireguard-openbsd-22b5262b35eca124a1a9b6938f6f246e6ba8e89d.tar.xz wireguard-openbsd-22b5262b35eca124a1a9b6938f6f246e6ba8e89d.zip |
Name saved dump and kernel "bsd*", not "netbsd*"
-rw-r--r-- | sbin/savecore/savecore.8 | 14 | ||||
-rw-r--r-- | sbin/savecore/savecore.c | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sbin/savecore/savecore.8 b/sbin/savecore/savecore.8 index 84293950568..a66b8e1be75 100644 --- a/sbin/savecore/savecore.8 +++ b/sbin/savecore/savecore.8 @@ -65,7 +65,7 @@ is insufficient disk space. .It Fl N Use .Ar system -as the kernel instead of the default ``/netbsd''. +as the kernel instead of the default ``/bsd''. .It Fl v Prints out some additional debugging information. .It Fl z @@ -77,13 +77,13 @@ Compresses the core dump and kernel (see checks the core dump in various ways to make sure that it is current and that it corresponds to the currently running system. If it passes these checks, it saves the core image in -.Ar directory Ns Pa /netbsd.#.core +.Ar directory Ns Pa /bsd.#.core and the system in -.Ar directory Ns Pa /netbsd.# +.Ar directory Ns Pa /bsd.# (or in -.Ar directory Ns Pa /netbsd.#.Z.core +.Ar directory Ns Pa /bsd.#.Z.core and -.Ar directory Ns Pa /netbsd.#.Z , +.Ar directory Ns Pa /bsd.#.Z , respectively, if the .Fl z option is used). @@ -116,8 +116,8 @@ is meant to be called near the end of the initialization file (see .Xr rc 8 ) . .Sh FILES -.Bl -tag -width /netbsdxx -compact -.It Pa /netbsd +.Bl -tag -width /bsdxx -compact +.It Pa /bsd current kernel .El .Sh BUGS diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index d6d027eb163..d77f1251568 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -368,7 +368,7 @@ err1: syslog(LOG_WARNING, "%s: %s", path, strerror(errno)); (void)fclose(fp); /* Create the core file. */ - (void)snprintf(path, sizeof(path), "%s/netbsd.%d%s.core", + (void)snprintf(path, sizeof(path), "%s/bsd.%d%s.core", dirname, bounds, compress ? ".Z" : ""); if (compress) { if ((fp = zopen(path, "w", 0)) == NULL) { @@ -424,7 +424,7 @@ err2: syslog(LOG_WARNING, /* Copy the kernel. */ ifd = Open(kernel ? kernel : _PATH_UNIX, O_RDONLY); - (void)snprintf(path, sizeof(path), "%s/netbsd.%d%s", + (void)snprintf(path, sizeof(path), "%s/bsd.%d%s", dirname, bounds, compress ? ".Z" : ""); if (compress) { if ((fp = zopen(path, "w", 0)) == NULL) { |