/WebSVN/dl.php |
---|
50,8 → 50,10 |
// Create a temporary directory. Here we have an unavoidable but highly |
// unlikely to occure race condition |
$tmpname = tempnam("temp", "wsvn"); |
if (mkdir("dir".$tmpname)) |
$tmpfile1 = tempnam("temp", "wsvn"); |
$tmpfile2 = tempnam("temp", "wsvn"); |
$tempname = $tmpfile1.$tmpfile2; |
if (mkdir($tmpname)) |
{ |
// Get the name of the directory being archived |
$arcname = substr($path, 0, -1); |
104,5 → 106,6 |
@exec($cmd); |
} |
unlink($tmpname); |
unlink($tmpfile1); |
unlink($tmpfile2); |
?> |