From eed058426a1ec1fc4dce68af2cb1cd3775c2a272 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 25 Sep 2014 16:35:19 +0200 Subject: [PATCH] fix that stupid stdin is truncated bug again Signed-off-by: Steven Armstrong --- cdist/conf/type/__ssh_authorized_keys/manifest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdist/conf/type/__ssh_authorized_keys/manifest b/cdist/conf/type/__ssh_authorized_keys/manifest index 0fcfed5b..6a536e1b 100755 --- a/cdist/conf/type/__ssh_authorized_keys/manifest +++ b/cdist/conf/type/__ssh_authorized_keys/manifest @@ -74,5 +74,6 @@ while read key; do if [ -f "$__object/parameter/comment" ]; then set -- "$@" --comment "$(cat "$__object/parameter/comment")" fi - __ssh_authorized_key "$@" + # Ensure __ssh_authorized_key does not read stdin + __ssh_authorized_key "$@" < /dev/null done < "$__object/parameter/key"