Wind River Support Network


LIN5-7077 : alternatives option missing for /usr/sbin/in.rlogind

Created: Nov 11, 2013    Updated: Dec 19, 2017
Resolved Date: Dec 4, 2013
Found In Version: 5.0.1
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace


A previous defect (WIND00418029) reported inconsistent use of "alternatives" with inetutils.

Although this was fixed in RCPL 4 it has since been discovered that no link to /usr/sbin/in.rlogind is being made - the alternative link for rlogind points to rshd.


Manually set up an alternative after booting the target, or use an fsfinal script.

Steps to Reproduce

$ configure --enable-board=qemux86-64 --enable-rootfs=glibc_cgl --enable-kernel=cgl

$ make -C build inetutils-rshd.addpkg

$ make fs

$ cd export/dist

$ find . -name '*rlogind*'

$ ls -l usr/sbin/in.rlogind
-rwxr-xr-x 1 rdanter rdanter 64664 Oct 17 10:55 usr/sbin/in.rlogind*

$ ls -l var/lib/opkg/alternatives/rlogind
-rw-r--r-- 1 rdanter rdanter 36 Nov  8 15:14 var/lib/opkg/alternatives/rlogind

$ cat var/lib/opkg/alternatives/rlogind
../sbin/in.rshd 80

$ ls -l usr/bin/rlogind
lrwxrwxrwx 1 rdanter rdanter 15 Nov  8 15:14 usr/bin/rlogind -> ../sbin/in.rshd*

So rlogind is an alternative which points to /usr/bin/rlogind, which in turn is a symlink to /usr/sbin/in.rshd though there is also a /usr/sbin/in.rlogind.

When in.rlogind is available it should be included in the alternatives and used by default.

Other Downloads

Live chat