diff options
author | peter <peter@FreeBSD.org> | 1997-03-27 02:36:26 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-27 02:36:26 +0000 |
commit | bce2ebb937dc823cb2793289b1887df51fc97645 (patch) | |
tree | 061cea54d85f018cfa0ab0555e6c010016f4851e | |
parent | 6b898a8b9806d2b7247e6cfc849bc871ea9f0eac (diff) | |
download | FreeBSD-src-bce2ebb937dc823cb2793289b1887df51fc97645.zip FreeBSD-src-bce2ebb937dc823cb2793289b1887df51fc97645.tar.gz |
Fix "-fstype local" that was broken by another bugfix in the Lite2 merge.
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3076
-rw-r--r-- | usr.bin/find/function.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index 5a6a069..97d63c5 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -341,7 +341,7 @@ f_fstype(plan, entry) static dev_t curdev; /* need a guaranteed illegal dev value */ static int first = 1; struct statfs sb; - static short val; + static int val_type, val_flags; char *p, save[2]; /* Only check when we cross mount point. */ @@ -380,14 +380,14 @@ f_fstype(plan, entry) * Further tests may need both of these values, so * always copy both of them. */ - val = sb.f_flags; - val = sb.f_type; + val_flags = sb.f_flags; + val_type = sb.f_type; } switch (plan->flags) { case F_MTFLAG: - return (val & plan->mt_data); + return (val_flags & plan->mt_data) != 0; case F_MTTYPE: - return (val == plan->mt_data); + return (val_type == plan->mt_data); default: abort(); } |