Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 113431
Collapse All | Expand All

(-)pppd.orig (-2 / +2 lines)
Lines 56-63 Link Here
56
# Add/update PAP/CHAP authentication information 
56
# Add/update PAP/CHAP authentication information 
57
pppd_update_secrets_file() {
57
pppd_update_secrets_file() {
58
	local filepath="$1" username="$2" remotename="$3" password="$4"
58
	local filepath="$1" username="$2" remotename="$3" password="$4"
59
	if [[ ! -f ${filepath} ]]; then
59
	if [[ ! -s ${filepath} ]]; then
60
		touch ${filepath} && \
60
		echo '#'client$'\t'server$'\t'secret$'\t'IP addresses > ${filepath} && \
61
		chmod 0600 ${filepath} || \
61
		chmod 0600 ${filepath} || \
62
		return 1
62
		return 1
63
	fi
63
	fi

Return to bug 113431