| Line 49... |
Line 49... |
| 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 |
$tmpname = tempnam("temp", "wsvn"); |
53 |
$tmpname = tempnam("temp", "wsvn"); |
| 54 |
if (mkdir($tmpname)) |
54 |
if (mkdir("dir".$tmpname)) |
| 55 |
{ |
55 |
{ |
| 56 |
// Get the name of the directory being archived |
56 |
// Get the name of the directory being archived |
| 57 |
$arcname = substr($path, 0, -1); |
57 |
$arcname = substr($path, 0, -1); |
| 58 |
$arcname = basename($arcname); |
58 |
$arcname = basename($arcname); |
| 59 |
if (empty($arcname)) |
59 |
if (empty($arcname)) |