From 724c741335acbcd6eb438ae5fad0bd1de56c9e3a Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Thu, 20 Sep 2012 06:21:44 +0530 Subject: [PATCH] prevent barfage when presetting the rc file --- src/lib/Gitolite/Rc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Gitolite/Rc.pm b/src/lib/Gitolite/Rc.pm index 346e049..5d3b861 100644 --- a/src/lib/Gitolite/Rc.pm +++ b/src/lib/Gitolite/Rc.pm @@ -61,7 +61,7 @@ $UNSAFE_PATT = qr([`~#\$\&()|;<>]); my $current_data_version = "3.0"; my $rc = glrc('filename'); -if (-r $rc) { +if (-r $rc and -s $rc) { do $rc or die $@; } if ( defined($GL_ADMINDIR) ) {