From 413e0a69c782d9b40890020300cd28753a862f27 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 16 Jan 2015 18:42:08 +0100 Subject: [PATCH] ssh-copy-id: Fix the shell script that gets executed on the remote server Previously it didn't work with mfsBSD: fk@electrobsd ~ $ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.1.107 [...] Password for root@mfsbsd: Unmatched '. Unmatched '. Obtained from: ElectroBSD Already reported upstream with similar patch: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194301 --- usr.bin/ssh-copy-id/ssh-copy-id.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/ssh-copy-id/ssh-copy-id.sh b/usr.bin/ssh-copy-id/ssh-copy-id.sh index 09fb3cc..15d901b 100755 --- a/usr.bin/ssh-copy-id/ssh-copy-id.sh +++ b/usr.bin/ssh-copy-id/ssh-copy-id.sh @@ -48,7 +48,7 @@ sendkey() { done ; \ if [ -x /sbin/restorecon ]; then \ /sbin/restorecon -F "$HOME/.ssh/" "$keyfile" >/dev/null 2>&1 || true ; \ - fi + fi ; \ '\' } -- 2.3.0