From: deraadt Date: Wed, 1 May 1996 15:14:43 +0000 (+0000) Subject: (once again) allow /etc/fstab mountpoints to be used, ie "fsck /usr" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cc92f1a31f9adccb41e77bf351b7748d94e18720;p=openbsd (once again) allow /etc/fstab mountpoints to be used, ie "fsck /usr" --- diff --git a/sbin/fsck_ffs/preen.c b/sbin/fsck_ffs/preen.c index d347cd3f1de..ce0b18338df 100644 --- a/sbin/fsck_ffs/preen.c +++ b/sbin/fsck_ffs/preen.c @@ -290,6 +290,7 @@ blockcheck(origname) char *origname; { struct stat stslash, stblock, stchar; + struct fstab *fsp; char *newname, *raw; int retried = 0; @@ -330,6 +331,11 @@ retry: * Not a block or character device, just return name and * let the user decide whether to use it. */ + if ((fsp = getfsfile(origname))) { + newname = fsp->fs_spec; + retried++; + goto retry; + } return (origname); }