[77] in arla-drinkers
Re: appl/arlalib.c's arlalib_get_cred() problems
daemon@ATHENA.MIT.EDU (John Hawkinson)
Thu Jul 2 20:38:03 1998
From arla-drinkers-request@sundance.stacken.kth.se Fri Jul 03 00:38:01 1998
Return-Path: <arla-drinkers-request@sundance.stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 27881 invoked from network); 3 Jul 1998 00:38:00 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 3 Jul 1998 00:38:00 -0000
Received: from all-purpose-gunk.near.net (all-purpose-gunk.near.net [199.94.208.184])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id CAA29083
for <arla-drinkers@stacken.kth.se>; Fri, 3 Jul 1998 02:30:36 +0200 (MET DST)
Received: (from jhawk@localhost)
by all-purpose-gunk.near.net (8.8.8/8.8.8) id UAA07086;
Thu, 2 Jul 1998 20:30:31 -0400 (EDT)
From: John Hawkinson <jhawk@bbnplanet.com>
Message-Id: <199807030030.UAA07086@all-purpose-gunk.near.net>
Subject: Re: appl/arlalib.c's arlalib_get_cred() problems
To: assar@sics.se (Assar Westerlund)
Date: Thu, 2 Jul 1998 20:30:30 -0400 (EDT)
Cc: jhawk@bbnplanet.com, arla-drinkers@stacken.kth.se
In-Reply-To: <5ld8bofha5.fsf@assaris.sics.se> from "Assar Westerlund" at Jul 2, 98 04:40:02 pm
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
> > Can't there be a better way? Like looking it up in /etc/name_to_sysnum
> > dynamically? Sure, this is less efficient than hardcoding it, but
> > isn't it "the right solution"?
>
> Could you try the following patch?
Well, I learned the hard way not to try adding system calls greater
than 255 to /etc/name_to_sysnum. Renders the machine pretty-much
unbootable, unless you're willing to hack with kadb.
This seems to work fine, but rqeuires the user to set AFS_SYCALL
to "xfs" or "afs" as appropriate; seemingly it'd be better to just
default to one.
--jhawk