From owner-freebsd-bugs Mon May 3 20: 0: 6 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BEC1514FC0 for ; Mon, 3 May 1999 20:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA10387; Mon, 3 May 1999 20:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 87BBD14DC4; Mon, 3 May 1999 19:57:37 -0700 (PDT) Message-Id: <19990504025737.87BBD14DC4@hub.freebsd.org> Date: Mon, 3 May 1999 19:57:37 -0700 (PDT) From: jon@spock.org To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: misc/11478: Non-functional AFS support in KerberosIV library. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11478 >Category: misc >Synopsis: Non-functional AFS support in KerberosIV library. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 3 20:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Jonathan Chen >Release: RELENG_3 cvsup'ed on 5/3/99 >Organization: >Environment: FreeBSD data.spock.org 3.1-19990422-STABLE FreeBSD 3.1-19990422-STABLE #0: Sat Apr 24 16:17:41 EDT 1999 jon@data.spock.org:/usr/src/sys/compile/JON i386 >Description: AFS support is turned off in kerberosIV/include/config.h. When that is turned on, however, AFS still does not work. Various programs cannot find AFS because the k_hasafs() call (in libkafs) always return false. This is because the file crypto/kerberosIV/lib/kafs/afssysdefs.h is not FreeBSD friendly. >How-To-Repeat: install arla (do not use ports, the version of arla there is ancient) Utilities such as kinit/kauth will not obtain and afs@AFS.CELL ticket. Also, programs included with arla such as fs will say something to the effect of "No AFS detected". >Fix: The following patch will 1) turn on AFS by default and 2) tell libkafs that FreeBSD can use syscall #210 to detect AFS. * note: perhaps somebody turned off AFS by default for some reason. I don't know why, so I included this change. --- crypto/kerberosIV/lib/kafs/afssysdefs.h~ Mon May 3 16:37:25 1999 +++ crypto/kerberosIV/lib/kafs/afssysdefs.h Mon May 3 16:37:40 1999 @@ -78,7 +78,7 @@ #define AFS_SYSCALL 31 #endif -#if defined(__NetBSD__) +#if defined(__NetBSD__) || defined(__FreeBSD__) #define AFS_SYSCALL 210 #endif --- kerberosIV/include/config.h~ Mon May 3 21:51:48 1999 +++ kerberosIV/include/config.h Mon May 3 21:52:17 1999 @@ -927,7 +927,7 @@ /* Define if you don't want support for afs, might be a good idea on AIX if you don't have afs */ -#define NO_AFS 1 +/* #undef NO_AFS */ /* Define if you have a readline compatible library */ #define HAVE_READLINE 1 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message