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