summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-22 11:28:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-22 11:28:02 +0000
commit200dde568cd8db5fa9ddc42e6b5388df55a16573 (patch)
tree796395b24c3ccf7bfbe88b1986d90ecf9b2a7576 /sbin
parentbdbde85fc4ed149d8c77ffc8abc680a5f0cae4bc (diff)
check for path in fstab
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck_ffs/preen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/preen.c b/sbin/fsck_ffs/preen.c
index ce0b18338df..91ffee36ae5 100644
--- a/sbin/fsck_ffs/preen.c
+++ b/sbin/fsck_ffs/preen.c
@@ -1,4 +1,4 @@
-/* $NetBSD: preen.c,v 1.11 1995/03/18 14:55:59 cgd Exp $ */
+/* $NetBSD: preen.c,v 1.12 1996/05/11 14:27:50 mycroft Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)preen.c 8.3 (Berkeley) 12/6/94";
#else
-static char rcsid[] = "$NetBSD: preen.c,v 1.11 1995/03/18 14:55:59 cgd Exp $";
+static char rcsid[] = "$NetBSD: preen.c,v 1.12 1996/05/11 14:27:50 mycroft Exp $";
#endif
#endif /* not lint */
@@ -326,6 +326,10 @@ retry:
newname = unrawname(newname);
retried++;
goto retry;
+ } else if ((fsp = getfsfile(newname)) != 0 && !retried) {
+ newname = fsp->fs_spec;
+ retried++;
+ goto retry;
}
/*
* Not a block or character device, just return name and