You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/sh
|
|
|
|
##
|
|
|
|
## ssh-askpass -- Internal OpenSSH wrapper for ssh-askpass
|
|
|
|
##
|
|
|
|
|
|
|
|
ssh_askpass=""
|
|
|
|
if [ ".$SSH_ASKPASS" != . ]; then
|
|
|
|
ssh_askpass="$SSH_ASKPASS"
|
|
|
|
else
|
|
|
|
for p in @l_prefix@ `echo $PATH | sed -e 's/:/ /g'`; do
|
|
|
|
if [ -f $p/ssh-askpass ]; then
|
|
|
|
ssh_askpass="$p/ssh-askpass"
|
|
|
|
break
|
|
|
|
elif [ -f $p/x11-ssh-askpass ]; then
|
|
|
|
ssh_askpass="$p/x11-ssh-askpass"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
if [ ".$ssh_askpass" = . ]; then
|
|
|
|
echo "ssh:ERROR: neither \"[x11-]ssh-askpass\" installed nor \$SSH_ASKPASS provided" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
exec $ssh_askpass "$@"
|
|
|
|
|