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:
parent
6c02c4c7d9
commit
f92eaf6315
4 changed files with 31 additions and 15 deletions
|
@ -45,6 +45,9 @@ rsyncServerParams =
|
|||
, Params "-e.Lsf ."
|
||||
]
|
||||
|
||||
rsyncUseDestinationPermissions :: CommandParam
|
||||
rsyncUseDestinationPermissions = Param "--chmod=ugo=rwX"
|
||||
|
||||
rsync :: [CommandParam] -> IO Bool
|
||||
rsync = boolSystem "rsync"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue