summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-09 13:49:47 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-09 13:55:18 -0400
commitdc132dfb0917925932a1472e6ea1dedb7988c430 (patch)
tree20573c80aac5954e1e3fb078713a3d2d9e1909ec /Utility
parent13d04eb9c793a712ae64337b6f192df12c4a11ec (diff)
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)
Diffstat (limited to 'Utility')
-rw-r--r--Utility/Rsync.hs3
1 files changed, 3 insertions, 0 deletions
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"