eliminate-libaudit-requirement-20001104
[openafs.git] / src / auth / userok.c
index 0eef770..33a5a8a 100644 (file)
 #include "afs/audit.h"
 
 
+#if !defined(UKERNEL)
+int afsconf_CheckAuth(adir, acall)
+register struct rx_call *acall;
+register struct afsconf_dir *adir; {
+    LOCK_GLOBAL_MUTEX
+    return ((afsconf_SuperUser(adir, acall, (char *)0) == 0)? 10029 : 0);
+    UNLOCK_GLOBAL_MUTEX
+}
+#endif /* !defined(UKERNEL) */
+
 static GetNoAuthFlag(adir)
 struct afsconf_dir *adir; {
     if (access(AFSDIR_SERVER_NOAUTH_FILEPATH, 0) == 0) {