From 19eddb5197eec10e88f47a8a17c28c245c3a6594 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 22 Feb 2021 09:24:09 -0700 Subject: connection type :SUDO can just use cp(1) for CONNECTION-UPLOAD Signed-off-by: Sean Whitton --- src/connection/sudo.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/connection/sudo.lisp') diff --git a/src/connection/sudo.lisp b/src/connection/sudo.lisp index f97f03b..1c6c374 100644 --- a/src/connection/sudo.lisp +++ b/src/connection/sudo.lisp @@ -99,4 +99,4 @@ (run :input contents (sudocmd c "cat" #?">$(path)"))) (defmethod connection-upload ((c sudo-connection) from to) - (connection-writefile c to (read-file-string from))) + (run (sudocmd c "cp" from to))) -- cgit v1.2.3