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)

This commit is contained in:
Joey Hess 2013-05-09 13:49:47 -04:00
parent 6c02c4c7d9
commit f92eaf6315
4 changed files with 31 additions and 15 deletions

View file

@ -45,6 +45,9 @@ rsyncServerParams =
, Params "-e.Lsf ."
]
rsyncUseDestinationPermissions :: CommandParam
rsyncUseDestinationPermissions = Param "--chmod=ugo=rwX"
rsync :: [CommandParam] -> IO Bool
rsync = boolSystem "rsync"