From dc132dfb0917925932a1472e6ea1dedb7988c430 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 9 May 2013 13:49:47 -0400 Subject: rsync special remotes: When sending from a crippled filesystem, use the destination's default file permissions, as the local ones can be arbitrarily broken. (Ie, ----rwxr-x for files on Android) --- Utility/Rsync.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Utility') diff --git a/Utility/Rsync.hs b/Utility/Rsync.hs index d4eeddc8c..652da8b20 100644 --- a/Utility/Rsync.hs +++ b/Utility/Rsync.hs @@ -45,6 +45,9 @@ rsyncServerParams = , Params "-e.Lsf ." ] +rsyncUseDestinationPermissions :: CommandParam +rsyncUseDestinationPermissions = Param "--chmod=ugo=rwX" + rsync :: [CommandParam] -> IO Bool rsync = boolSystem "rsync" -- cgit v1.2.3