summaryrefslogtreecommitdiff
path: root/kerberosIV/kafs/afssys.c
diff options
context:
space:
mode:
Diffstat (limited to 'kerberosIV/kafs/afssys.c')
-rw-r--r--kerberosIV/kafs/afssys.c10
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;
}