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 |
unlink($tmpname); |
- |
|
55 |
if (mkdir($tmpname)) |
54 |
if (mkdir($tmpname)) |
56 |
{ |
55 |
{ |
57 |
// Get the name of the directory being archived |
56 |
// Get the name of the directory being archived |
58 |
$arcname = substr($path, 0, -1); |
57 |
$arcname = substr($path, 0, -1); |
59 |
$arcname = basename($arcname); |
58 |
$arcname = basename($arcname); |
Line 103... |
Line 102... |
103 |
$cmd = quoteCommand("rm -fr ".quote($tmpname), false); |
102 |
$cmd = quoteCommand("rm -fr ".quote($tmpname), false); |
104 |
// } |
103 |
// } |
105 |
|
104 |
|
106 |
@exec($cmd); |
105 |
@exec($cmd); |
107 |
} |
106 |
} |
- |
|
107 |
unlink($tmpname); |
108 |
?> |
108 |
?> |