aboutsummaryrefslogtreecommitdiff
path: root/sbin/restore
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2001-10-30 20:06:59 +0000
committerAnton Berezin <tobez@FreeBSD.org>2001-10-30 20:06:59 +0000
commit646d372751789028dd760b5ae813a739bd3e837b (patch)
treefe3d49cc51b9499bb50d81afe923861c356b66b1 /sbin/restore
parente5217bf6e88fe3da7748a8171b03df6102f5800b (diff)
downloadsrc-646d372751789028dd760b5ae813a739bd3e837b.tar.gz
src-646d372751789028dd760b5ae813a739bd3e837b.zip
Fix a bug where restore(8) segfaults while trying to restore on a
read-only FS. Reviewed by: audit silence Approved by: markm MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=85746
Diffstat (limited to 'sbin/restore')
-rw-r--r--sbin/restore/symtab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/restore/symtab.c b/sbin/restore/symtab.c
index c20521373632..6ad878506b5b 100644
--- a/sbin/restore/symtab.c
+++ b/sbin/restore/symtab.c
@@ -471,6 +471,7 @@ dumpsymtable(filename, checkpt)
fprintf(stderr, "fopen: %s\n", strerror(errno));
panic("cannot create save file %s for symbol table\n",
filename);
+ done(1);
}
clearerr(fd);
/*