From 81fbe03b509414aa1ede960141a7ffd241d5f9ee Mon Sep 17 00:00:00 2001 From: Jesse Gibbons Date: Wed, 25 Nov 2020 19:12:08 -0700 Subject: gnu: openssh: Fix ssh-copy-id. * gnu/packages/patches/openssh-fix-ssh-copy-id.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/ssh.scm (openssh)[source]: Use it. Signed-off-by: Leo Famulari --- gnu/packages/patches/openssh-fix-ssh-copy-id.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 gnu/packages/patches/openssh-fix-ssh-copy-id.patch (limited to 'gnu/packages/patches') diff --git a/gnu/packages/patches/openssh-fix-ssh-copy-id.patch b/gnu/packages/patches/openssh-fix-ssh-copy-id.patch new file mode 100644 index 0000000000..6adba639a3 --- /dev/null +++ b/gnu/packages/patches/openssh-fix-ssh-copy-id.patch @@ -0,0 +1,38 @@ +Fix a bug where ssh-copy-id would fail with "EOF: command not found": + +https://github.com/openssh/openssh-portable/pull/206 + +Patch copied from upstream source repository: + +https://github.com/openssh/openssh-portable/commit/d9e727dcc04a52caaac87543ea1d230e9e6b5604 + +From d9e727dcc04a52caaac87543ea1d230e9e6b5604 Mon Sep 17 00:00:00 2001 +From: Oleg +Date: Thu, 1 Oct 2020 12:09:08 +0300 +Subject: [PATCH] Fix `EOF: command not found` error in ssh-copy-id + +--- + contrib/ssh-copy-id | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id +index 392f64f94..a76907717 100644 +--- a/contrib/ssh-copy-id ++++ b/contrib/ssh-copy-id +@@ -247,7 +247,7 @@ installkeys_sh() { + # the -z `tail ...` checks for a trailing newline. The echo adds one if was missing + # the cat adds the keys we're getting via STDIN + # and if available restorecon is used to restore the SELinux context +- INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF) ++ INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF + cd; + umask 077; + mkdir -p $(dirname "${AUTH_KEY_FILE}") && +@@ -258,6 +258,7 @@ installkeys_sh() { + restorecon -F .ssh ${AUTH_KEY_FILE}; + fi + EOF ++ ) + + # to defend against quirky remote shells: use 'exec sh -c' to get POSIX; + printf "exec sh -c '%s'" "${INSTALLKEYS_SH}" -- cgit v1.2.3 a href='/guix/log/tests/syscalls.scm?id=7d72da6b07e99854751187d2694b067733fedda5'>syscalls.scm
AgeCommit message (Expand)Author
2021-10-26syscalls: Add 'openpty' and 'login-tty'....Ludovic Courtès
2021-02-25syscalls: Add 'mounts' and the <mount> record type....Ludovic Courtès
2020-06-28tests: Do not fail when network interface aliases are present....Marius Bakke
2020-06-05tests: syscall: Support file-systems without extended attributes....Mathieu Othacehe
2020-06-02tests: Allow passing on systems without support for swap devices....Simon South
2020-05-14syscalls: Add 'getxattr'....Jan (janneke) Nieuwenhuizen
2020-02-11syscalls: Re-enable 'pivot-root' test....Ludovic Courtès