[libcxx-commits] [libcxx] 160b01c - [libc++] SSH: Use -p when scp'ing to preserve modes and modification times

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 1 09:33:10 PDT 2020


Author: Louis Dionne
Date: 2020-04-01T12:32:23-04:00
New Revision: 160b01c9ef6768d4a135bdf27c46ceadb0bc5070

URL: https://github.com/llvm/llvm-project/commit/160b01c9ef6768d4a135bdf27c46ceadb0bc5070
DIFF: https://github.com/llvm/llvm-project/commit/160b01c9ef6768d4a135bdf27c46ceadb0bc5070.diff

LOG: [libc++] SSH: Use -p when scp'ing to preserve modes and modification times

Added: 
    

Modified: 
    libcxx/utils/ssh.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/ssh.py b/libcxx/utils/ssh.py
index 5ba267b67d2e..82fc88441edb 100644
--- a/libcxx/utils/ssh.py
+++ b/libcxx/utils/ssh.py
@@ -35,7 +35,7 @@ def main():
     commandLine = remaining[1:] # Skip the '--'
 
     ssh = lambda command: ['ssh', '-oBatchMode=yes', args.host, command]
-    scp = lambda src, dst: ['scp', '-oBatchMode=yes', '-r', src, '{}:{}'.format(args.host, dst)]
+    scp = lambda src, dst: ['scp', '-oBatchMode=yes', '-p', '-r', src, '{}:{}'.format(args.host, dst)]
 
     # Create a temporary directory where the test will be run.
     tmp = subprocess.check_output(ssh('mktemp -d /tmp/libcxx.XXXXXXXXXX'), universal_newlines=True).strip()


        


More information about the libcxx-commits mailing list