rapier1 / hpn-ssh-archive

HPN-SSH is a set of patches designed to enhance OpenSSH
http://www.psc.edu/networking/projects/hpn-ssh
Other
30 stars 6 forks source link

scp-hpn execs vanilla ssh #4

Closed walterdejong closed 5 years ago

walterdejong commented 5 years ago

Build with default prefix and use EXEEXT=-hpn. When you execute scp-hpn, you will find that under the hood it execs the vanilla ssh:

strace -f /usr/bin/scp-hpn -vvvv -P 8000 /etc/motd dm5:/tmp/ 2>&1 |grep exec
execve("/usr/bin/scp-hpn", ["/usr/bin/scp-hpn", "-vvvv", "-P", "8000", "/etc/motd", "dm5:/tmp"...], [/* 58 vars */]) = 0
[pid 14724] execve("/usr/bin/ssh", ["/usr/bin/ssh", "-x", "-oForwardAgent=no", "-oPermitLocalCommand=no", "-oClearAllForwardings=yes", "-oRemoteCommand=none", "-oRequestTTY=no", "-v", "-v", "-v", "-v", "-p", "8000", "--", "dm5", "scp -v -t /tmp/", ...], [/* 58 vars */]) = 0

Next I built with prefix=/home/walter/sw and EXEEXT=-hpn. Now scp-hpn tries executing /home/walter/sw/bin/ssh, which is not installed:

$ strace -f ./scp-hpn -vvv /etc/issue localhost:/tmp/ 2>&1 |grep exec
execve("./scp-hpn", ["./scp-hpn", "-vvv", "/etc/issue", "localhost:/tmp/"], [/* 65 vars */]) = 0
[pid 29588] execve("/home/walter/sw/bin/ssh", ["/home/walter/sw/bin/ssh", "-x", "-oForwardAgent=no", "-oPermitLocalCommand=no", "-oClearAllForwardings=yes", "-oRemoteCommand=none", "-oRequestTTY=no", "-v", "-v", "-v", "--", "localhost", "scp -v -t /tmp/"], [/* 65 vars */]) = -1 ENOENT (No such file or directory)

Solution/workaround: build with a prefix dir dedicated to ssh-hpn, and use a blank EXEEXT.

I really do like having the extension -hpn on the command names, so hopefully you can make a fix.

walterdejong commented 5 years ago

I will close this issue and re-open on the openssh-portable project (?)