aboutsummaryrefslogtreecommitdiff
path: root/Utility/Rsync.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-03-30 18:54:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-03-30 18:54:09 -0400
commit027a9fd1b75d07f7261f7a6054d2fa3c50e4ec61 (patch)
treed5f02cca004306bfe20ca2c8cc66ed9b8a975303 /Utility/Rsync.hs
parentc2e0b9e7cd515b40191298e650ac8ad15a391d2a (diff)
don't refer to git-annex, as this is a generic utility library
Diffstat (limited to 'Utility/Rsync.hs')
-rw-r--r--Utility/Rsync.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Utility/Rsync.hs b/Utility/Rsync.hs
index 93c63c989..41eb53c21 100644
--- a/Utility/Rsync.hs
+++ b/Utility/Rsync.hs
@@ -130,11 +130,11 @@ parseRsyncProgress = go [] . reverse . progresschunks
(_, []) -> Nothing
(b, _) -> readish b
-{- To prevent an evil client to run harmful options on the server, we
- - cherry-pick those that are harmless. Them only are passed to rsync
- - when executed through 'git-annex-shell'.
+{- Rsync options that are safe to pass to rsync in server mode, without
+ - causing it to eg, expose files.
+ -
- Note: Ensure that when calling getopt, the first component of the
- - outupt is a subset of the input.
+ - output is a subset of the input.
-}
rsyncSafeOptions :: [OptDescr String]
rsyncSafeOptions = [ Option [] ["bwlimit"] (reqArgLong "bwlimit") "" ]