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"); |
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 |
if (mkdir($tmpname)) |
57 |
if (mkdir($tmpname)) |
57 |
{ |
58 |
{ |
58 |
// Get the name of the directory being archived |
59 |
// Get the name of the directory being archived |
59 |
$arcname = substr($path, 0, -1); |
60 |
$arcname = substr($path, 0, -1); |
60 |
$arcname = basename($arcname); |
61 |
$arcname = basename($arcname); |