[26078] in Athena Bugs

home help back first fref pref prev next nref lref last post

Bug in /etc/athena/network-scripts/user/20kerberos

daemon@ATHENA.MIT.EDU (Derek Atkins)
Fri Sep 17 18:34:45 2004

To: bugs@mit.edu
From: Derek Atkins <warlord@mit.edu>
Date: Fri, 17 Sep 2004 18:34:40 -0400
Message-ID: <sjmllf8sewv.fsf@dogbert.ihtfp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Errors-To: bugs-bounces@mit.edu

Periodically I see this error message in my console:

18:31 /etc/athena/network-scripts/user/20kerberos: line 14: [: too many arguments

I suspect this is due to this line in the script:

  if [ $NETDEVCOUNT -eq 1 -a "x$OLDIPADDR" != "x$IPADDR" ]; then

In particular, if NETDEVCOUNT isn't set, this would be invalid.
One way to fix this is to put quotes around the variable.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available

home help back first fref pref prev next nref lref last post