[mirrorbrain-commits] r7864 - /trunk/tools/null-rsync

From: <poeml_at_mirrorbrain.org>
Date: Mon, 23 Nov 2009 14:45:43 -0000
Author: poeml
Date: Mon Nov 23 15:45:43 2009
New Revision: 7864

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7864&view=rev
Log:
null-rsync: note about world-writable flag added

Modified:
    trunk/tools/null-rsync

Modified: trunk/tools/null-rsync
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/null-rsync?rev=7864&r1=7863&r2=7864&view=diff
==============================================================================
--- trunk/tools/null-rsync (original)
+++ trunk/tools/null-rsync Mon Nov 23 15:45:43 2009
_at_@ -55,7 +55,6 @@
 import time
 import stat
 
-verbose = True
 
 def perms_to_mode(p):
 
_at_@ -72,9 +71,10 @@
     elif p[5] == 's': m |= stat.S_ISGID | stat.S_IXGRP
 
     if p[6] == 'r': m |= stat.S_IROTH
+    # we never receive the following bit, because we run rsync with --chmod=o-w
+    # so that it always considers the bit off in the source permissions
     if p[7] == 'w': m |= stat.S_IWOTH
     if p[8] == 'x': m |= stat.S_IXOTH
-
 
     # for security reasons, we probably don't want these:
     # stat.S_ISUID
_at_@ -85,6 +85,7 @@
 
 rsync_src = sys.argv[1]
 rsync_dst = sys.argv[2]
+verbose = True
 
 cmd = [ 'rsync',
         '--no-motd', 




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Mon Nov 23 2009 - 14:45:44 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT