commit 04efcd4c81307ce9c4b8e322663f847686ca5e63
parent 1ebb8450597e2000e7f50eabc1608821df76a1b2
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Fri, 8 Jan 2021 19:34:16 +0000
Don't make tty1 login special since I don't have setuid Xorg anymore
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/home/loginexec b/home/loginexec
@@ -9,11 +9,11 @@ fi
if [[ $TTY = /dev/tty[1-4] ]]; then
[[ -S /run/user/$USER/ssh_agent.${${TTY#/dev/}//\//.} ]] && rm /run/user/$USER/ssh_agent.${${TTY#/dev/}//\//.}
X=$[ ${TTY#/dev/tty} + 4 ]
- if [[ $X == 5 ]]; then
- exec startsshagent.passfd /run/user/$USER/ssh_agent.${${TTY#/dev/}//\//.} =zshaskpass_mux xinit -- :$X tty$X -quiet -nolisten local -nolisten tcp -retro
- else
+# if [[ $X == 5 ]]; then
+# exec startsshagent.passfd /run/user/$USER/ssh_agent.${${TTY#/dev/}//\//.} =zshaskpass_mux xinit -- :$X tty$X -quiet -nolisten local -nolisten tcp -retro
+# else
exec startsshagent.passfd /run/user/$USER/ssh_agent.${${TTY#/dev/}//\//.} =zshaskpass_lock
- fi
+# fi
else
exec ssh-agent -a /run/user/$USER/ssh_agent.${${TTY#/dev/}//\//.} /bin/execlineb -c \
'if { redirfd -r 0 /dev/null env DISPLAY=pipe SSH_ASKPASS=/home/ccx/bin/cat_pass_fd ssh-add } zsh -l'