Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2001 14:15:57 -0800 (PST)
From:      tmoestl@gmx.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/24206: [PATCH] bug in isdnd config file scanner (breaks the ppp-expect-password option)
Message-ID:  <200101092215.f09MFvV42053@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24206
>Category:       bin
>Synopsis:       [PATCH] bug in isdnd config file scanner (breaks the ppp-expect-password option)
>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:   Tue Jan 09 14:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Moestl
>Release:        FreeBSD 5.0-CURRENT
>Organization:
>Environment:
FreeBSD raven.local 5.0-CURRENT FreeBSD 5.0-CURRENT #31: 
Sun Jan  7 20:06:10 CET 2001     
thomas@raven.local:/usr/src/sys/compile/RAVEN  i386

>Description:
A small bug in the config file scanner breaks the ppp-expect-password
option (it is interpreted like the ppp-expect-name option).

>How-To-Repeat:
E.g., give the following options:
	ppp-expect-auth = pap
	ppp-expect-name = foo
	ppp-expect-password = bar
in your isdnd.rc. isdnd will complain about a missing password.
>Fix:
Apply the following patch (if it gets mangled, it is also available
at http://www.tu-bs.de/~y0015675/isdnd.diff).

*** src/usr.sbin/i4b/isdnd/rc_scan.l~   Mon Oct  9 16:22:39 2000
--- src/usr.sbin/i4b/isdnd/rc_scan.l    Thu Jan  4 00:29:44 2001
***************
*** 149,155 ****
  ppp-auth-paranoid             { return PPP_AUTH_PARANOID; }
  ppp-expect-auth                       { return PPP_EXPECT_AUTH; }
  ppp-expect-name                       { return PPP_EXPECT_NAME; }
! ppp-expect-password           { return PPP_EXPECT_NAME; }
  ppp-send-auth                 { return PPP_SEND_AUTH; }
  ppp-send-name                 { return PPP_SEND_NAME; }
  ppp-send-password             { return PPP_SEND_PASSWORD; }
--- 149,155 ----
  ppp-auth-paranoid             { return PPP_AUTH_PARANOID; }
  ppp-expect-auth                       { return PPP_EXPECT_AUTH; }
  ppp-expect-name                       { return PPP_EXPECT_NAME; }
! ppp-expect-password           { return PPP_EXPECT_PASSWORD; }
  ppp-send-auth                 { return PPP_SEND_AUTH; }
  ppp-send-name                 { return PPP_SEND_NAME; }
  ppp-send-password             { return PPP_SEND_PASSWORD; }


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101092215.f09MFvV42053>