Skip to content

Commit

Permalink
Don't chmod created directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed Apr 12, 2010
1 parent 527ff39 commit 8b26a6f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/Devel/Cover.pm
Expand Up @@ -301,9 +301,7 @@ sub import

unless (-d $DB)
{
# Nasty hack to keep 5.6.1 happy.
mkdir $DB, 0700 or croak "Can't mkdir $DB: $!\n";
chmod 0700, $DB or croak "Can't chmod $DB: $!\n";
}
$DB = $1 if Cwd::abs_path($DB) =~ /(.*)/;
Devel::Cover::DB->delete($DB) unless $Merge;
Expand Down Expand Up @@ -684,7 +682,6 @@ sub report
unless (-d $DB)
{
mkdir $DB, 0700 or croak "Can't mkdir $DB: $!\n";
chmod 0700, $DB or croak "Can't chmod $DB: $!\n";
}
$DB .= "/$run";

Expand Down

0 comments on commit 8b26a6f

Please sign in to comment.