summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2007-10-08 11:51:34 +0000
committerChristian Schneider2007-10-08 11:51:34 +0000
commitdccc497d1bbe32ed96e41897e88a98fd55a9faf1 (patch)
treea71da0e4c20f12b649450ec6bbf04777a05a0434
parente4404f222d1698b582d5966b12d1c432fb7fe147 (diff)
downloaditools-dccc497d1bbe32ed96e41897e88a98fd55a9faf1.tar.gz
itools-dccc497d1bbe32ed96e41897e88a98fd55a9faf1.tar.bz2
itools-dccc497d1bbe32ed96e41897e88a98fd55a9faf1.zip
Replace existing symlink when creating new log file
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it.class b/it.class
index 3a0f8df..727239f 100644
--- a/it.class
+++ b/it.class
@@ -94,6 +94,7 @@ function log($name /* ... */)
if (!$existed)
{
@chgrp($fn, "www");
+ @unlink($GLOBALS['ULTRAHOME'] . "/log/$name");
@symlink($fn, $GLOBALS['ULTRAHOME'] . "/log/$name");
}
}