Blame 0004-ssh-client-module-install-fix.patch

Harald Hoyer 035915
From 86de902e35a7c57ecc008ba725b7842e36bf7393 Mon Sep 17 00:00:00 2001
Harald Hoyer 035915
From: Dave Young <dyoung@redhat.com>
Harald Hoyer 035915
Date: Wed, 15 Feb 2012 14:40:24 +0800
Harald Hoyer 035915
Subject: [PATCH] ssh-client module install fix
Harald Hoyer 035915
Harald Hoyer 035915
commit 38164332e198f7cc8f339b42d555796918de04b3 try to
Harald Hoyer 035915
disallow ssh-client install for without proper options.
Harald Hoyer 035915
But ssh-client will fail installation with --sshkey for
Harald Hoyer 035915
publickey mode
Harald Hoyer 035915
Harald Hoyer 035915
Fix it by refusing to install only when both --ctty and --sshkey
Harald Hoyer 035915
are not added in options.
Harald Hoyer 035915
Harald Hoyer 035915
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer 035915
---
Harald Hoyer 035915
 modules.d/95ssh-client/module-setup.sh |    4 ++--
Harald Hoyer 035915
 1 files changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer 035915
Harald Hoyer 035915
diff --git a/modules.d/95ssh-client/module-setup.sh b/modules.d/95ssh-client/module-setup.sh
Harald Hoyer 035915
index 4410e4e..8d62b2d 100755
Harald Hoyer 035915
--- a/modules.d/95ssh-client/module-setup.sh
Harald Hoyer 035915
+++ b/modules.d/95ssh-client/module-setup.sh
Harald Hoyer 035915
@@ -50,8 +50,8 @@ inst_sshenv()
Harald Hoyer 035915
 }
Harald Hoyer 035915
 
Harald Hoyer 035915
 install() {
Harald Hoyer 035915
-    [[ ! $cttyhack = yes ]] && {
Harald Hoyer 035915
-        derror "ssh interactive mode needs option --ctty!"
Harald Hoyer 035915
+    [[ ! $cttyhack = yes && ! $sshkey ]] && {
Harald Hoyer 035915
+        derror "ssh-client needs option --ctty or --sshkey!"
Harald Hoyer 035915
         return 1
Harald Hoyer 035915
     }
Harald Hoyer 035915