Wind River Support Network

HomeDefectsLIN1018-5577
Fixed

LIN1018-5577 : rcp utility (Part of intetutils package) unable copy sub directory files.

Created: Jan 8, 2020    Updated: Feb 6, 2020
Resolved Date: Jan 21, 2020
Previous ID: LIN9-9520
Found In Version: 10.18.44.13
Fix Version: 10.18.44.14
Severity: Severe
Applicable for: Wind River Linux 9
Component/s: Userspace

Description

We are seeing rcp utility (Part of intetutils package) not copying sub directory files.

Earlier, rcp directory copy was not working fully. With the fix provided by LIN9-8513, only files in one of the directories was being successfully copied and files from other sub directories are still not copied.

Looks like patch from LIN9-8513 did not fix this issue completely.

Workaround

NA

Steps to Reproduce

WRL9 OVP host project - WRL9 RCPL0023

wrlinux-9/setup.sh --dl-layers --distros wrlinux-ovp --machines intel-x86-64 --kernel ovp --templates feature/kernel-ovp-kvm --layers wr-kernel wr-ovp

. ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env build

bitbake wrlinux-image-ovp-kvm

Deploy bzImage and rootfs to target and boot it.

-> Configure xinetd to use rcp. Refer - [http://git.wrs.com/cgi-bin/cgit.cgi/projects/wassp-repos/testcases/wrlinux/commit/wr-testing?id=af1ff029a0d20242521f699e5fb3a8b0047b7299]

*Test Case :* 

*Target 1 :*

root@intel-x86-64:~# uname -a
Linux intel-x86-64 4.8.28-rt10-WR9.0.0.23_ovp #1 SMP PREEMPT RT Thu Dec 12 22:18:34 CST 2019 x86_64 x86_64 x86_64 GNU/Linux
root@intel-x86-64:~# mkdir -p /var/tmp/rccopy/fold1/
root@intel-x86-64:~# mkdir -p /var/tmp/rccopy/fold2/
root@intel-x86-64:~# mkdir -p /var/tmp/rccopy/fold3/
root@intel-x86-64:~# touch /var/tmp/rccopy/fold1/file1
root@intel-x86-64:~# touch /var/tmp/rccopy/fold2/file2
root@intel-x86-64:~# touch /var/tmp/rccopy/fold3/file3
root@intel-x86-64:~# ls -lrt /var/tmp/rccopy/
total 0
drwxr-xr-x 2 root root 60 Dec 13 10:36 fold1
drwxr-xr-x 2 root root 60 Dec 13 10:36 fold2
drwxr-xr-x 2 root root 60 Dec 13 10:37 fold3
root@intel-x86-64:~# ls -lrt /var/tmp/rccopy/fold*
/var/tmp/rccopy/fold1:
total 0
-rw-r--r-- 1 root root 0 Dec 13 10:36 file1

/var/tmp/rccopy/fold2:
total 0
-rw-r--r-- 1 root root 0 Dec 13 10:36 file2

/var/tmp/rccopy/fold3:
total 0
-rw-r--r-- 1 root root 0 Dec 13 10:37 file3
root@intel-x86-64:~#
root@intel-x86-64:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:01:af:30:7b:50
 inet addr:172.25.61.51 Bcast:172.25.61.255 Mask:255.255.255.0


*Target 2 :*

root@intel-x86-64:~# uname -a
Linux intel-x86-64 4.8.28-rt10-WR9.0.0.23_ovp #1 SMP PREEMPT RT Thu Dec 12 22:18:34 CST 2019 x86_64 x86_64 x86_64 GNU/Linux
root@intel-x86-64:~# ls -lrt
total 0
root@intel-x86-64:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr d4:be:d9:0f:1f:9c
 inet addr:172.25.61.52 Bcast:172.25.61.255 Mask:255.255.255.0
root@intel-x86-64:~#
root@intel-x86-64:~# *rcp -r root@172.25.61.51:/var/tmp/rccopy .*
root@intel-x86-64:~# ls -lrt rccopy/
total 12
drwxr-xr-x 2 root root 4096 Dec 13 10:39 fold3
drwxr-xr-x 2 root root 4096 Dec 13 10:39 fold2
drwxr-xr-x 2 root root 4096 Dec 13 10:39 fold1
root@intel-x86-64:~# ls -lrt rccopy/fold*
rccopy/fold3:
total 0
-rw-r--r-- 1 root root 0 Dec 13 10:39 *file3*

rccopy/fold2:
total 0

rccopy/fold1:
total 0
root@intel-x86-64:~#

-> You can observe that directory rccopy/fold1, rccopy/fold2, rccopy/fold3 are copied. But files under fold3 only is copied and files under fold1 & fold2 are not copied. This issue was not observed with box running inetutils 1.9.1 package in customer tests.
Live chat
Online