don't refer to git-annex, as this is a generic utility library
authorJoey Hess <joey@kitenet.net>
Sat, 30 Mar 2013 22:54:09 +0000 (18:54 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 30 Mar 2013 22:54:09 +0000 (18:54 -0400)
Utility/Rsync.hs

index 93c63c989353ade67dfa326a0c3b9d273f2a47d8..41eb53c212693ff7ab164e7a8b49bc0dc653811f 100644 (file)
@@ -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") "" ]