Line 51... |
Line 51... |
51 |
// unlikely to occure race condition |
51 |
// unlikely to occure race condition |
52 |
|
52 |
|
53 |
//$tmpfile1 = tempnam("temp", "wsvn"); |
53 |
//$tmpfile1 = tempnam("temp", "wsvn"); |
54 |
//$tmpfile2 = tempnam("temp", "wsvn"); |
54 |
//$tmpfile2 = tempnam("temp", "wsvn"); |
55 |
//$tmpname = $tmpfile1.$tmpfile2; |
55 |
//$tmpname = $tmpfile1.$tmpfile2; |
56 |
$tmpfile = tempnam("temp", "wsvn"); |
56 |
$tmpname = tempnam("temp", "wsvn"); |
57 |
if (mkdir($tmpname)) |
57 |
if (mkdir($tmpname)) |
58 |
{ |
58 |
{ |
59 |
// Get the name of the directory being archived |
59 |
// Get the name of the directory being archived |
60 |
$arcname = substr($path, 0, -1); |
60 |
$arcname = substr($path, 0, -1); |
61 |
$arcname = basename($arcname); |
61 |
$arcname = basename($arcname); |
Line 105... |
Line 105... |
105 |
$cmd = quoteCommand("rm -fr ".quote($tmpname), false); |
105 |
$cmd = quoteCommand("rm -fr ".quote($tmpname), false); |
106 |
// } |
106 |
// } |
107 |
|
107 |
|
108 |
@exec($cmd); |
108 |
@exec($cmd); |
109 |
} |
109 |
} |
110 |
unlink($tmpfile1); |
110 |
unlink($tmpname); |
111 |
unlink($tmpfile2); |
111 |
//unlink($tmpfile2); |
112 |
?> |
112 |
?> |