summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping.pm
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-09-04 13:40:42 +0200
committerNiko Tyni <ntyni@iki.fi>2005-09-04 13:40:42 +0200
commit0fb4bc74b24ea96e80d4e27428b8c2451fbf0eb5 (patch)
tree129599b69e7323fb6500336e0baaffcf55335bea /lib/Smokeping.pm
parent3946df708ae20686c8453eb55be934103daf2f7e (diff)
downloadsmokeping-0fb4bc74b24ea96e80d4e27428b8c2451fbf0eb5.tar.gz
smokeping-0fb4bc74b24ea96e80d4e27428b8c2451fbf0eb5.tar.xz
* lib/Smokeping.pm,
CHANGES: + don't create directories in "datadir" when running as a CGI
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r--lib/Smokeping.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index a14699f..28923e7 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -363,7 +363,7 @@ sub init_target_tree ($$$$) {
foreach my $prop (keys %{$tree}) {
if (ref $tree->{$prop} eq 'HASH'){
- if (not -d $name) {
+ if (not -d $name and not $cgimode) {
mkdir $name, 0755 or die "ERROR: mkdir $name: $!\n";
};
init_target_tree $cfg, $probes, $tree->{$prop}, "$name/$prop";