diff options
author | Eivind Eklund <eivind@FreeBSD.org> | 2000-07-28 20:02:42 +0000 |
---|---|---|
committer | Eivind Eklund <eivind@FreeBSD.org> | 2000-07-28 20:02:42 +0000 |
commit | 1e2f8412e0bd1ab80eae5c6fbcda5fcf139dce2c (patch) | |
tree | 9ebd3a24c29aa8e1c20b0dc8e465b6aef2d58930 /usr.bin/find/function.c | |
parent | fc3345a4a7f09f4f4799d917b0e48c3f16d99225 (diff) | |
download | src-test2-1e2f8412e0bd1ab80eae5c6fbcda5fcf139dce2c.tar.gz src-test2-1e2f8412e0bd1ab80eae5c6fbcda5fcf139dce2c.zip |
Notes
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r-- | usr.bin/find/function.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index 1534ee2cbbb3..670d102cc8e0 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -564,6 +564,14 @@ f_fstype(plan, entry) } #if !defined(__NetBSD__) +int +f_always_false(plan, entry) + PLAN *plan; + FTSENT *entry; +{ + return (0); +} + PLAN * c_fstype(arg) char *arg; @@ -600,8 +608,14 @@ c_fstype(arg) } break; } - errx(1, "%s: unknown file type", arg); - /* NOTREACHED */ + /* + * We need to make filesystem checks for filesystems + * that exists but aren't in the kernel work. + */ + fprintf(stderr, "Warning: Unknown filesystem type %s\n", arg); + free(new); + + return (palloc(N_FSTYPE, f_always_false)); } #endif |