summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-03-04 21:56:36 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-03-04 21:56:36 +0000
commit687727d0c70f8afbda9700317af86dce9c5216a8 (patch)
tree72a1af6f12070922c5fb5d04e33f40c7e7043f6e
parentafff9af48e8d69d75f566631323c1f2149240e72 (diff)
DUH! k_hasafs returns 0 if pioctl fails.
-rw-r--r--kerberosIV/kafs/afssys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kerberosIV/kafs/afssys.c b/kerberosIV/kafs/afssys.c
index 5a938e27d75..1fdeb33b9f3 100644
--- a/kerberosIV/kafs/afssys.c
+++ b/kerberosIV/kafs/afssys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: afssys.c,v 1.8 1999/02/15 02:57:04 art Exp $ */
+/* $OpenBSD: afssys.c,v 1.9 1999/03/04 21:56:35 art Exp $ */
/* $KTH: afssys.c,v 1.57 1998/05/09 17:19:03 joda Exp $ */
/*
@@ -89,5 +89,5 @@ k_hasafs(void)
bzero(&parms, sizeof(struct ViceIoctl));
- return k_pioctl(NULL, VIOCSETTOK, &parms, 0);
+ return !k_pioctl(NULL, VIOCSETTOK, &parms, 0);
}