Wind River Support Network

HomeDefectsLIN6-9955
Fixed

LIN6-9955 : ypbind script is not correct

Created: Jun 1, 2015    Updated: Dec 3, 2018
Resolved Date: Jul 7, 2015
Found In Version: 6.0.0.17,6.0.0.19
Fix Version: 6.0.0.23
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Networking

Description

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"
           Fi 

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
(none)
root@qemu0:~# echo $?
0

Clearly the script will fail with these results.

Other Downloads


Live chat
Online