Wind River Support Network


LIN7-3954 : CLONE - ypbind script is not correct

Created: Jun 4, 2015    Updated: Sep 8, 2018
Resolved Date: Jul 9, 2015
Previous ID: LIN6-9971
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Networking


The ypbind script seems to be written for a different version of the ypdomainname command than the default in WRL6.

The script contains the following:

  ## If the domainname is not set, skip starting of ypbind
        ## and return with "program not configured"
        /bin/ypdomainname &> /dev/null
        if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then
           if [ -f /etc/defaultdomain ]; then
             XDOMAINNAME=`cat /etc/defaultdomain`
             /bin/ypdomainname "$XDOMAINNAME"

However, if no domain has been set by NIS then ypdomainname call returns an exit code of zero and "(none)" on stdout. This means that the first "if" statement will never be true, and thus the seconf "if" is never executed.

Steps to Reproduce

Configure a WRL6 project, build and deploy, qemu works well.

Run the following commands:

root@qemu0:~# ypdomainname 2> /dev/null
root@qemu0:~# echo $?

Clearly the script will fail with these results.

Other Downloads

Live chat