diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-03-19 10:43:34 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-03-19 10:43:34 +0000 |
commit | 518a5dad2e08ddf813b1c17d37cb97ac6aabf3ac (patch) | |
tree | 2eedf5870df50b92b41eddccf52691712ffbbac6 /kerberosIV/kafs/afssys.c | |
parent | eb3d46ba49448264df985b89aa833a014a7290e3 (diff) |
(k_hasafs): Only ENOSYS means failure. Everything else is success.
Diffstat (limited to 'kerberosIV/kafs/afssys.c')
-rw-r--r-- | kerberosIV/kafs/afssys.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kerberosIV/kafs/afssys.c b/kerberosIV/kafs/afssys.c index 1fdeb33b9f3..cca824920ff 100644 --- a/kerberosIV/kafs/afssys.c +++ b/kerberosIV/kafs/afssys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: afssys.c,v 1.9 1999/03/04 21:56:35 art Exp $ */ +/* $OpenBSD: afssys.c,v 1.10 1999/03/19 10:43:33 art Exp $ */ /* $KTH: afssys.c,v 1.57 1998/05/09 17:19:03 joda Exp $ */ /* @@ -89,5 +89,11 @@ k_hasafs(void) bzero(&parms, sizeof(struct ViceIoctl)); - return !k_pioctl(NULL, VIOCSETTOK, &parms, 0); + k_pioctl(NULL, VIOCSETTOK, &parms, 0); + + /* + * An ENOSYS means failure. Anything else is success (including EINVAL). + */ + + return errno != ENOSYS; } |