Skip to content

Commit

Permalink
- No need to open with write permission to dump it
Browse files Browse the repository at this point in the history
git-svn-id: svn://munin-monitoring.org/munin/trunk@4161 47311dc8-50f3-0310-b975-824c5c5ab7df
  • Loading branch information
steveschnepp committed Apr 14, 2011
1 parent 66cd030 commit 01ef7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/dump_db
Expand Up @@ -10,7 +10,7 @@ my $db_file = shift;
my %hash;
use Fcntl; # For O_RDWR, O_CREAT, etc.
use DB_File;
tie(%hash, 'DB_File', $db_file, O_RDWR) or die "$!";
tie(%hash, 'DB_File', $db_file, O_RDONLY) or die "$!";

for my $key (sort keys %hash) {
my $value = $hash{$key};
Expand Down

0 comments on commit 01ef7ba

Please sign in to comment.