| Line 48... |
Line 48... |
| 48 |
$rev = $youngest; |
48 |
$rev = $youngest; |
| 49 |
|
49 |
|
| 50 |
// Create a temporary directory. Here we have an unavoidable but highly |
50 |
// Create a temporary directory. Here we have an unavoidable but highly |
| 51 |
// unlikely to occure race condition |
51 |
// unlikely to occure race condition |
| 52 |
|
52 |
|
| - |
|
53 |
//$tmpnam1 = tempnam("temp", "wsvn"); |
| - |
|
54 |
//$tmpname2 = tempnam("temp", "wsvn"); |
| 53 |
$tmpname = tempnam("temp", "wsvn"); //!!! |
55 |
$tmpname = tempnam("temp", "wsvn"); |
| 54 |
unlink($tmpname); |
56 |
unlink($tmpname); |
| 55 |
if (mkdir($tmpname)) |
57 |
if (mkdir("ble_".$tmpname)) |
| 56 |
{ |
58 |
{ |
| 57 |
// Get the name of the directory being archived |
59 |
// Get the name of the directory being archived |
| 58 |
$arcname = substr($path, 0, -1); |
60 |
$arcname = substr($path, 0, -1); |
| 59 |
$arcname = basename($arcname); |
61 |
$arcname = basename($arcname); |
| 60 |
if (empty($arcname)) |
62 |
if (empty($arcname)) |