Bug#221675: better and simpler patch for this bug
retitle 221675 ssh-copy-id should check ssh-add -L exit status
tag 221675 patch
thanks
hi, the attached patch prevents ssh-add -L output being used if the
command exits with non-zero status.
cheers,
--
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
There may be no I in TEAM, but a M and an E.
--- ssh-copy-id.old 2004-05-29 00:30:08.000000000 +0200
+++ ssh-copy-id 2004-07-12 03:46:40.000000000 +0200
@@ -19,7 +19,7 @@
shift # and this should leave $1 as the target name
fi
else
- if [ x$SSH_AUTH_SOCK != x ] ; then
+ if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then
GET_ID="$GET_ID ssh-add -L"
fi
fi
Reply to: