Ask to look for alternate UFS2 superblocks when the standard one is unusable.

This feature was inadvertently lost in commit c0bfa109b9.
This commit is contained in:
Kirk McKusick 2022-07-20 22:37:14 -07:00
parent b43b8f8157
commit 7c332e97bb

View File

@ -129,7 +129,8 @@ reply(const char *question)
if (preen)
pfatal("INTERNAL ERROR: GOT TO reply()");
persevere = !strcmp(question, "CONTINUE");
persevere = strcmp(question, "CONTINUE") == 0 ||
strcmp(question, "LOOK FOR ALTERNATE SUPERBLOCKS") == 0;
printf("\n");
if (!persevere && (nflag || (fswritefd < 0 && bkgrdflag == 0))) {
printf("%s? no\n\n", question);