diff options
author | Anton Berezin <tobez@FreeBSD.org> | 2001-10-30 20:06:59 +0000 |
---|---|---|
committer | Anton Berezin <tobez@FreeBSD.org> | 2001-10-30 20:06:59 +0000 |
commit | 646d372751789028dd760b5ae813a739bd3e837b (patch) | |
tree | fe3d49cc51b9499bb50d81afe923861c356b66b1 /sbin/restore | |
parent | e5217bf6e88fe3da7748a8171b03df6102f5800b (diff) | |
download | src-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.c | 1 |
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); /* |