Use an error message closer to old dumpfs(8) in the case of truncated/no

superblock.

Submitted by:	kkenn

Can't use it verbatim, at least I hate to, as the ", skipped" bit doesn't
make much sense in a library, to me.
This commit is contained in:
jmallett 2002-10-22 19:36:10 +00:00
parent 7eb8ba29f0
commit 0b72fdc81b

View File

@ -60,7 +60,7 @@ sbread(struct uufsd *disk)
for (sb = 0; (superblock = superblocks[sb]) != -1; sb++) { for (sb = 0; (superblock = superblocks[sb]) != -1; sb++) {
if (bread(disk, superblock, disk->d_sb, SBLOCKSIZE) == -1) { if (bread(disk, superblock, disk->d_sb, SBLOCKSIZE) == -1) {
disk->d_error = "truncated superblock"; disk->d_error = "non-existent or truncated superblock";
DEBUG(NULL); DEBUG(NULL);
return -1; return -1;
} }