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 |
$tmpname1 = tempnam("temp", "wsvn-"); |
53 |
$tmpname1 = tempnam("temp", "wsvn-"); |
54 |
$tmpname = $tmpname1; |
54 |
$tmpname = $tmpname1; |
55 |
$tmpname .= "dir"; |
55 |
$tmpname .= "dir"; |
56 |
if (mkdir($tmpname)) |
56 |
if (mkdir($tmpname)) |
57 |
{ |
57 |
{ |
58 |
// Get the name of the directory being archived |
58 |
// Get the name of the directory being archived |
Line 104... |
Line 104... |
104 |
$cmd = quoteCommand("rm -fr ".quote($tmpname), false); |
104 |
$cmd = quoteCommand("rm -fr ".quote($tmpname), false); |
105 |
// } |
105 |
// } |
106 |
|
106 |
|
107 |
@exec($cmd); |
107 |
@exec($cmd); |
108 |
} |
108 |
} |
109 |
unlink($tmpname1); |
109 |
unlink($tmpname1); // Pomocny soubor smazeme az po smazani adresare |
110 |
|
110 |
|
111 |
?> |
111 |
?> |