[Bps-public-commit] Prophet branch, master, updated. 90871e7db8f4ad847deee8e03d58d1edd96111b9

sartak at bestpractical.com sartak at bestpractical.com
Fri Jun 19 01:17:15 EDT 2009


The branch, master has been updated
       via  90871e7db8f4ad847deee8e03d58d1edd96111b9 (commit)
      from  abf81e332359be77e432ec451fb3a8d4504138e5 (commit)

Summary of changes:
 lib/Prophet/CLI/PublishCommand.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 90871e7db8f4ad847deee8e03d58d1edd96111b9
Author: Shawn M Moore <sartak at gmail.com>
Date:   Fri Jun 19 01:16:59 2009 -0400

    Publish replicas with world-readable permissions

diff --git a/lib/Prophet/CLI/PublishCommand.pm b/lib/Prophet/CLI/PublishCommand.pm
index a764354..9cea40c 100644
--- a/lib/Prophet/CLI/PublishCommand.pm
+++ b/lib/Prophet/CLI/PublishCommand.pm
@@ -13,6 +13,10 @@ sub publish_dir {
     $args{from} .= '/';
 
     my @args;
+
+    # Set directories to be globally +rx, files to be globally +r
+    push @args, '--chmod=Da+rx,a+r';
+
     push @args, '--verbose' if $self->context->has_arg('verbose');
     
     push @args, '--recursive', '--' , $args{from}, $args{to};

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list