Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113431

Summary: baselayout-1.12.0_pre11 does not repopulate ppp secrets files
Product: Gentoo Linux Reporter: Paul Bredbury <brebs>
Component: [OLD] baselayoutAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: minor CC: mrness
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: pppd.patch

Description Paul Bredbury 2005-11-23 23:09:53 UTC
The pppd_update_secrets_file() function in /lib/rcscripts/net.modules.d/pppd
fails to repopulate a non-existent {chap,pap}-secrets file in /etc/ppp/. The
file is created by "touch", but not populated with the username and password by
"sed".

The problem is the regular-expression voodoo in that function :)
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-11-23 23:47:42 UTC
Your voodoo mrness
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2005-11-24 00:44:30 UTC
Created attachment 73479 [details, diff]
pppd.patch

Yes, that sed cannot handle empty files.

This pppd patch fixes that.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-11-24 04:27:29 UTC
Patch is in our svn repo - will be in baselayout-1.12.0_pre12
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-11-28 03:04:14 UTC
Fixed in pre11-r2