diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1999-12-23 14:44:36 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1999-12-23 14:44:36 +0000 |
| commit | 473ee77f29e9f8dbb3a550493566c1e742a03897 (patch) | |
| tree | f4c9b662b0e01deeea8fcc08bb584319d8d59c5d /lib/libc | |
| parent | 1671c412aa894117bbf42cf8ebd95b5b2c0fb38b (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/fstab.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/gen/fstab.c b/lib/libc/gen/fstab.c index 65b02c190665..5962fe23fe5f 100644 --- a/lib/libc/gen/fstab.c +++ b/lib/libc/gen/fstab.c @@ -32,7 +32,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) +#if 0 static char sccsid[] = "@(#)fstab.c 8.1 (Berkeley) 6/4/93"; +#else +static char rcsid[] = + "$FreeBSD$"; +#endif #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -71,7 +76,8 @@ fixfsfile() else strcpy(buf, _PATH_DEV); strcat(buf, sf.f_mntfromname); - if (stat(buf, &sb) != 0 || !S_ISBLK(sb.st_mode)) + if (stat(buf, &sb) != 0 || + (!S_ISBLK(sb.st_mode) && !S_ISCHR(sb.st_mode))) return; _fs_fstab.fs_spec = buf; } |
