Explorar o código

support x11-ssh-askpass, too

Ralf S. Engelschall %!s(int64=24) %!d(string=hai) anos
pai
achega
8d9f4340cc
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      openssh/ssh-askpass

+ 4 - 1
openssh/ssh-askpass

@@ -11,11 +11,14 @@ else
         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 \"ssh-askpass\" installed nor \$SSH_ASKPASS provided" 1>&2
+    echo "ssh:ERROR: neither \"[x11-]ssh-askpass\" installed nor \$SSH_ASKPASS provided" 1>&2
     exit 1
 fi
 exec $ssh_askpass "$@"