NetBSD Problem Report #282

From gnats  Tue Jun  7 14:50:37 1994
Received: from hulk.sfsu.edu (root@hulk.sfsu.edu [130.212.3.12]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id OAA00556 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 7 Jun 1994 14:50:37 -0700
Message-Id: <199406072040.NAA00438@hulk.sfsu.edu>
Date: Tue, 7 Jun 1994 13:40:14 -0700
From: obrien@hulk.sfsu.edu (Jonathan O'Brien)
Reply-To: obrien@hulk.sfsu.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: sliplogin tells lies to ifconfig and ifconfig believes it!
X-Send-Pr-Version: 3.2

>Number:         282
>Category:       bin
>Synopsis:       sliplogin's arglist not bzero'd, ifconfig fails on said args
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 07 15:05:01 +0000 1994
>Closed-Date:    Thu Jun 30 07:50:59 +0000 1994
>Last-Modified:  Sun Sep 14 18:05:57 +0000 2014
>Originator:     Jonathan O'Brien
>Release:        -current May 30th
>Organization:
"	"
>Environment:

System: NetBSD hulk.sfsu.edu 0.9B NetBSD 0.9B (HULK) #0: Tue Jun 7 11:31:35 PDT 1994 root@hulk.sfsu.edu:/usr/src/sys/arch/i386/compile/HULK i386


>Description:

sliplogin will read in all of its args then pass the list out to slip.login.
Problem is that the last few args aren't nulled out causing probs in ifconfig.
Ex.
For this slip.hosts:
Smedusa	hulk		medusa		0xffff0000	metric 1
This is passed to slip.login:
/sbin/ifconfig sl0 inet hulk medusa netmask 0xffff0000 metric 1 00 01
This is the output of ifconfig sl0:
sl0: flags=d011<UP,POINTOPOINT,LINK0,LINK2,MULTICAST> metric 1
	inet 130.212.3.12 --> 0.0.0.1 netmask 0xffff0000 

In my view this problem is twofold, sliplogin should null all its arg's, and
ifconfig should not allow the bogus args at the end to hose it.

>How-To-Repeat:

Use the slip.hosts and slip.login provided in the source dist.

Set up a login:
Smedusa::207:30::0:0:Slip Login:/tmp:/usr/sbin/sliplogin

login and ifconfig sl0 on another line.


>Fix:

I fixed it by removing the extra unnecessary arg's in the slip.login. i.e. I
nuked $10 and $11. This is not the proper fix.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cgd 
State-Changed-When: Thu Jun 30 00:50:59 PDT 1994 
State-Changed-Why:  
description was not at all on track.  rather it was a problem wit hthe supplied 
slip.login not dealing correctly with sh's ideas of how to access positional 
parameters. 

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.