Subject: Re: pkg/33926 rp-pppoe/pppoe-server fails
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 11/01/2006 15:00:05
The following reply was made to PR bin/33926; it has been noted by GNATS.

From: Martin Husemann <martin@duskware.de>
To: Water NB <netbsd78@126.com>
Cc: gnats-bugs@NetBSD.org, christos@NetBSD.org
Subject: Re: pkg/33926 rp-pppoe/pppoe-server fails
Date: Wed, 1 Nov 2006 15:57:58 +0100

 --/9DWx/yDrRhgMJTb
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Indeed, pppd is the culprit.
 The following patch fixes the problem for me.
 
 Martin
 
 --/9DWx/yDrRhgMJTb
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=patch
 
 Index: main.c
 ===================================================================
 RCS file: /cvsroot/src/dist/pppd/pppd/main.c,v
 retrieving revision 1.7
 diff -u -r1.7 main.c
 --- main.c	29 Jun 2006 21:53:33 -0000	1.7
 +++ main.c	1 Nov 2006 14:56:24 -0000
 @@ -1585,7 +1585,7 @@
  	if (errfd != 2 && errfd != -1)
  		dup2(errfd, 2);
  
 -	closelog();
 +	/* closelog(); */
  	if (log_to_fd > 2)
  		close(log_to_fd);
  	if (the_channel->close)
 
 --/9DWx/yDrRhgMJTb--