package existed for a brief period of time during SLE 15 SP6/ Leap 15.6 development but even if it was removed from the repositories before GM, some users might have it in their systems from having tried a beta/RC release (boo#1227350). quoting was present in the user-supplied ssh_config(5) directive (bsc#1218215, CVE-2023-51385). OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=270
27 lines
479 B
Bash
27 lines
479 B
Bash
#!/bin/bash
|
|
|
|
SESSION=
|
|
|
|
if [ -n "$KDE_FULL_SESSION" ] ; then
|
|
SESSION=kde
|
|
fi
|
|
|
|
if [ "$DESKTOP_SESSION" = "lxqt" ]; then
|
|
SESSION=kde
|
|
fi
|
|
|
|
GNOME_SSH_ASKPASS="@LIBEXECDIR@/ssh/gnome-ssh-askpass"
|
|
KDE_SSH_ASKPASS="@LIBEXECDIR@/ssh/ksshaskpass"
|
|
|
|
case "$SESSION" in
|
|
kde)
|
|
[ -e $KDE_SSH_ASKPASS ] && exec $KDE_SSH_ASKPASS ${1+"$@"}
|
|
exec $GNOME_SSH_ASKPASS ${1+"$@"}
|
|
;;
|
|
*)
|
|
[ -e $GNOME_SSH_ASKPASS ] && exec $GNOME_SSH_ASKPASS ${1+"$@"}
|
|
exec $KDE_SSH_ASKPASS ${1+"$@"}
|
|
;;
|
|
esac
|
|
|