bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

remote backup problem with tar 1.13


From: cagri coltekin
Subject: remote backup problem with tar 1.13
Date: Sun, 21 Jan 2001 20:43:07 +0200
User-agent: Mutt/1.2.5i

I encounterd a problem while trying to take remote backups with tar
1.13 (both on aix 4.3.3, built and installed with defaults and on
slackware linux default installation).

The attached diff solved my problem, however, I do not understand the
code, and I'm not even an average programmer, so the following is the 
description of the problem.

Command and the errors are like this,
------------------------------------------------------------------------------
# gtar tvf address@hidden:/dev/tapes/tape0/mt
host: name emsh NOT FOUND
gtar: Cannot open address@hidden:/dev/tapes/tape0/mt: There is an
input or output error.
gtar: Error is not recoverable: exiting now
------------------------------------------------------------------------------

As far as I could trace from the source, while executing remote_shell
programm, argv[0] to remote shell is given as basename of remote shell
path. Base name is extracted by base_name function in lib/basename.c,
and the following lines from rtapelib.c advances one char in basename,
giving `emsh' for /usr/bin/remsh or `sh' for /usr/bin/rsh, and this is
interpreted by rsh program as a host name. and it fails.

------------------------------------------------------------------------------
if (remote_shell_basename)
      remote_shell_basename++;
else
      remote_shell_basename = remote_shell;
------------------------------------------------------------------------------

I hope, I am not reporting a known problem,

-- 
cagri

Attachment: rtapelib.c.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]