allow changing permissions to 0000
[catagits/Catalyst-Devel.git] / 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 {