Wind River Support Network

HomeDefectsLIN6-3625
Fixed

LIN6-3625 : alternatives option missing for /usr/sbin/in.rlogind

Created: Nov 11, 2013    Updated: Mar 5, 2016
Resolved Date: Dec 8, 2013
Previous ID: LIN5-7081, LIN6-2930
Found In Version: 6.0
Fix Version: 6.0
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

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.

Workaround

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*'
./etc/logcheck/cracking.d/rlogind
./usr/bin/rlogind
./usr/sbin/in.rlogind
./var/lib/opkg/alternatives/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
/usr/bin/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.
Live chat
Online