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

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

tar 1.13 fails with remote tape drives


From: Daniel R. Grayson
Subject: tar 1.13 fails with remote tape drives
Date: Wed, 27 Dec 2000 14:54:40 -0600 (CST)

I got this error message

    rcmd: getaddrinfo: Temporary failure in name resolution
    tar: Cannot open niobium.home:/dev/nst0: Input/output error
    Error is not recoverable: exiting now

when trying to use tar with this remote tape drive:

    rhenium# printenv TAPE
    niobium.home:/dev/nst0

Strace showed that tar was trying to look up an IP number for the host named
"sh", because "rsh" had been called with its 0-th argument set to "sh".
(Recall that if rsh is called as some other name, it takes that name as the
host to go to.)

Here is a suggested fix:

     Remove the four lines
                    if (remote_shell_basename)
                      remote_shell_basename++;
                    else
                      remote_shell_basename = remote_shell;
     from src/rtapelib.c (in version 1.13).

There is no discernable reason for the second line, which changes the
basename from "rsh" to "sh".  There is also no reason for the first line,
since remote_shell_basename is always non null at this point, hence no reason
for the third or fourth lines.



reply via email to

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