Fixed
Created: Jun 4, 2015
Updated: Sep 8, 2018
Resolved Date: Jul 9, 2015
Previous ID: LIN6-9971
Found In Version: 7.0.0.5
Fix Version: 7.0.0.8
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"
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.
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.