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

Bug 3103

Summary: Setting YP_DOMAIN in /etc/conf.d/ypbind has no effect.
Product: Gentoo Linux Reporter: Lars Pechan <lars.pechan>
Component: New packagesAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.1a   
Hardware: x86   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lars Pechan 2002-05-28 04:07:37 UTC
I tracked it down to what's probably a typo in /etc/init.d/ypbind:

There is a test done like this in checkconfig()

if [ -s "$YP_DOMAIN" ] && return 0

This is looking for the file denoted by $YP_DOMAIN rather than checking for the 
existence of the variable.

I changed it to 

if [ -n "$YP_DOMAIN" ] && return 0

i.e. if the length of string defined by $YP_DOMAIN is non-zero then we're fine.

Works ok with the change.

The ebuild version is ypbind-1.11
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-04 06:15:11 UTC
Thanks for the fix lars.  Committed to portage.