diff options
author | obrien <obrien@FreeBSD.org> | 2001-03-27 19:28:00 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-03-27 19:28:00 +0000 |
commit | c9c6dd1eff6b2b7d5b4b1bcd316b4d17dc407326 (patch) | |
tree | e6f70798ade96cfe55e1f12b74fb5e2be6c06792 /sbin | |
parent | 957ae0262f5e5abeb36014fd369e835eb3fe258b (diff) | |
download | FreeBSD-src-c9c6dd1eff6b2b7d5b4b1bcd316b4d17dc407326.zip FreeBSD-src-c9c6dd1eff6b2b7d5b4b1bcd316b4d17dc407326.tar.gz |
Do not exit if unable to read /etc/dumpdates or create it.
If one is trying to dump or repair an ill system, give the user a fighting
chance. Refusing to operate w/o a very non-critical file (feature) is
just plain stupid.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dump/itime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/dump/itime.c b/sbin/dump/itime.c index cd60c9e..981f532 100644 --- a/sbin/dump/itime.c +++ b/sbin/dump/itime.c @@ -85,8 +85,9 @@ initdumptimes() if ((df = fopen(dumpdates, "r")) == NULL) { if (errno != ENOENT) { - quit("cannot read %s: %s\n", dumpdates, + msg("cannot read %s: %s\n", dumpdates, strerror(errno)); + return; /* NOTREACHED */ } /* @@ -94,8 +95,9 @@ initdumptimes() */ msg("WARNING: no file `%s', making an empty one\n", dumpdates); if ((df = fopen(dumpdates, "w")) == NULL) { - quit("cannot create %s: %s\n", dumpdates, + msg("cannot create %s: %s\n", dumpdates, strerror(errno)); + return; /* NOTREACHED */ } (void) fclose(df); |