[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tar on AIX with remote tape
From: |
Joerg Lemke |
Subject: |
tar on AIX with remote tape |
Date: |
Mon, 24 Feb 2003 10:55:41 +0100 |
Hello,
I tried to use tar-1.13 on AIX 4.3 using a remote tape
on another machine. It did not work, so I had to fix
it in the source code as described below.
On AIX the RSH-program accepts argv[0] as "/usr/bin/rsh",
"/usr/bin/remsh", "rsh" or "remsh" for standard syntax.
Otherwise it assumes that argv[0] is a hostname and the
command takes the short form: "hostname command"
Due to the source code near:
#rtapelib.c, line 415
...
remote_shell_basename = base_name (remote_shell);
if (remote_shell_basename)
remote_shell_basename++;
else
remote_shell_basename = remote_shell;
...
remote_shell_basename is set to "emsh" and then passed to
remsh as argv[0]. Hence the error message "host emsh not found"
I just removed the whole if-else for an interim solution, because
I cannot see the meaning of the ++.
Thanks for this otherwise very useful piece of software !
Regards
Jörg Lemke
- tar on AIX with remote tape,
Joerg Lemke <=