summaryrefslogtreecommitdiffstats
path: root/sbin/restore
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2001-10-30 20:06:59 +0000
committertobez <tobez@FreeBSD.org>2001-10-30 20:06:59 +0000
commit35271836773dee35b0622f4e91cfb327eaa775a1 (patch)
treefe3d49cc51b9499bb50d81afe923861c356b66b1 /sbin/restore
parent3d71e8cc5da599f264658457e1c225445e4a79ec (diff)
downloadFreeBSD-src-35271836773dee35b0622f4e91cfb327eaa775a1.zip
FreeBSD-src-35271836773dee35b0622f4e91cfb327eaa775a1.tar.gz
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
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 c205213..6ad8785 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);
/*
OpenPOWER on IntegriCloud