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 |
if (count(glob("wsvn*"))<2) // Omezeni na pocet soucasne stahovanych souboru |
53 |
if (count(glob("/tmp/wsvn*"))<2) // Omezeni na pocet soucasne stahovanych souboru |
54 |
{ |
54 |
{ |
55 |
$tmpname1 = tempnam("temp", "wsvn-"); |
55 |
$tmpname1 = tempnam("temp", "wsvn-"); |
56 |
$tmpname = $tmpname1; |
56 |
$tmpname = $tmpname1; |
57 |
$tmpname .= "dir"; |
57 |
$tmpname .= "dir"; |
58 |
if (mkdir($tmpname)) |
58 |
if (mkdir($tmpname)) |