Jelajahi Sumber

support x11-ssh-askpass, too

Ralf S. Engelschall 24 tahun lalu
induk
melakukan
8d9f4340cc
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  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 "$@"