Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3103 - Setting YP_DOMAIN in /etc/conf.d/ypbind has no effect.
Summary: Setting YP_DOMAIN in /etc/conf.d/ypbind has no effect.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-28 04:07 UTC by Lars Pechan
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.