Line 51... |
Line 51... |
51 |
// unlikely to occure race condition |
51 |
// unlikely to occure race condition |
52 |
|
52 |
|
53 |
$tmpname1 = tempnam("temp", "wsvn-"); |
53 |
$tmpname1 = tempnam("temp", "wsvn-"); |
54 |
$tmpname = $tmpname1; |
54 |
$tmpname = $tmpname1; |
55 |
$tmpname .= "dir"; |
55 |
$tmpname .= "dir"; |
56 |
unlink($tmpname1); |
- |
|
57 |
if (mkdir($tmpname)) |
56 |
if (mkdir($tmpname)) |
58 |
{ |
57 |
{ |
59 |
// Get the name of the directory being archived |
58 |
// Get the name of the directory being archived |
60 |
$arcname = substr($path, 0, -1); |
59 |
$arcname = substr($path, 0, -1); |
61 |
$arcname = basename($arcname); |
60 |
$arcname = basename($arcname); |
Line 105... |
Line 104... |
105 |
$cmd = quoteCommand("rm -fr ".quote($tmpname), false); |
104 |
$cmd = quoteCommand("rm -fr ".quote($tmpname), false); |
106 |
// } |
105 |
// } |
107 |
|
106 |
|
108 |
@exec($cmd); |
107 |
@exec($cmd); |
109 |
} |
108 |
} |
- |
|
109 |
unlink($tmpname1); |
- |
|
110 |
|
110 |
?> |
111 |
?> |