allow changing permissions to 0000
Alex J. G. BurzyƄski [Thu, 7 Apr 2011 16:02:44 +0000 (18:02 +0200)]
lib/Catalyst/Helper.pm

index f2e39c9..3fba277 100644 (file)
@@ -325,7 +325,7 @@ sub render_file_contents {
       || Catalyst::Exception->throw(
         message => qq/Couldn't process "$template", / . $t->error() );
     my $file = $self->mk_file( $path, $output );
-    chmod $perms, file($file) if $perms;
+    chmod $perms, file($file) if defined $perms;
 }
 
 sub _mk_information {