summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-05-12 19:12:44 +0000
committerwollman <wollman@FreeBSD.org>1995-05-12 19:12:44 +0000
commita0ad6a34d39584cffc7f4f759c9bd29f4f44784a (patch)
treeeaa7433696a4f0560b30ad46dc3fcfe4407b5b94 /usr.sbin/config/config.y
parente7f4268dca67a63ab550ce0bc79e14eee95a7ff4 (diff)
downloadFreeBSD-src-a0ad6a34d39584cffc7f4f759c9bd29f4f44784a.zip
FreeBSD-src-a0ad6a34d39584cffc7f4f759c9bd29f4f44784a.tar.gz
Don't automatically default dumps to be on a swap device; if the user
wants dumps, he can either configure it explicitly (`dumps on' whatever) or use the dumpon(8) utility.
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 76e9a50..fb3ede0 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -1033,12 +1033,9 @@ checksystemspec(fl)
return;
}
/*
- * Default dump device and warn if place is not a
- * swap area.
+ * Warn if dump device is not a swap area.
*/
- if (fl->f_dumpdev == NODEV)
- fl->f_dumpdev = swap->f_swapdev;
- if (fl->f_dumpdev != swap->f_swapdev) {
+ if (fl->f_dumpdev != NODEV && fl->f_dumpdev != swap->f_swapdev) {
struct file_list *p = swap->f_next;
for (; p && p->f_type == SWAPSPEC; p = p->f_next)
OpenPOWER on IntegriCloud