Bug 164373 - --rsh-command option does not work
Summary: --rsh-command option does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora Legacy
Classification: Retired
Component: cpio
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Fedora Legacy Bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-27 13:54 UTC by Marco Colombo
Modified: 2007-04-18 17:29 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-09-14 08:45:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Marco Colombo 2005-07-27 13:54:29 UTC
This is a regression. My backup scripts broke after the installation of the
latest update, cpio-2.5-5.2.legacy.i386 on FC1.

The --rsh-command option is silently ignored, cpio insists in using rsh. I've
been using the same scripts for years, to access tape devices via ssh, with
--rsh-command /usr/bin/ssh. The full command line used for the test is:

cpio --rsh-command=/usr/bin/ssh -itv -H crc --block-size=512 -I tape@db2:/dev/st0

Both tcpdump and strace confirmed that cpio is trying to access port 512 instead
of running ssh. The same command performed on a FC2 (cpio-2.5-6) works just fine.

Comment 1 Pekka Savola 2005-07-28 06:39:24 UTC
This is pretty strange as I don't see anything that could affect --rsh-command,
either when looking at the diffs between the source rpms, or the diffs between
binary rpms (w/ rpm-build-compare.sh).

I guess you could try rebuilding the src.rpm as-is and trying again.  It might
work; if not, try commenting out the umask patch and/or lfs patch and rebuilding.

I suspect the first problem because I see in the configure.in:

AC_CHECKING(for remote shell)
if test -f /usr/ucb/rsh || test -f /usr/bin/remsh || test -f /usr/bin/rsh ||
  test -f /usr/bsd/rsh || test -f /usr/bin/nsh; then
  RTAPELIB=rtapelib.o
else
  AC_CHECK_HEADER(netdb.h, AC_DEFINE(HAVE_NETDB_H) RTAPELIB=rtapelib.o,
    AC_DEFINE(NO_REMOTE))
fi
AC_SUBST(RTAPELIB)dnl

as the packages are built on mach environment which doesn't have 'rsh', the
results might be different.



Comment 2 Marc Deslauriers 2005-07-28 12:07:47 UTC
Marco, I'll build some test packages tonight that you can try out to see if we
pinpointed the problem.

Comment 3 Marc Deslauriers 2005-07-28 23:22:07 UTC
I put some test packages for FC1 here:

http://www.infostrategique.com/linuxrpms/marc/cpio/

Could you please test them and tell me if --rsh-command works?

Thanks.

Comment 4 Pekka Savola 2005-09-05 07:57:32 UTC
Marco, any update on whether this fixed the problem or not?

Comment 5 Marco Colombo 2005-09-05 12:58:31 UTC
I'm sorry for the late reply, I just came back from vacation.
Yes, cpio-2.5-5.3.legacy.i386.rpm  fixes the problem.


Note You need to log in before you can comment on or make changes to this bug.