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
This commit is contained in:
Anton Berezin 2001-10-30 20:06:59 +00:00
parent e5217bf6e8
commit 646d372751
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85746

View File

@ -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);
/*