Rev 518 Rev 519
Line 51... Line 51...
51 // unlikely to occure race condition 51 // unlikely to occure race condition
52   52  
53 //$tmpnam1 = tempnam("temp", "wsvn"); 53 //$tmpnam1 = tempnam("temp", "wsvn");
54 //$tmpname2 = tempnam("temp", "wsvn"); 54 //$tmpname2 = tempnam("temp", "wsvn");
55 $tmpname1 = tempnam("temp", "wsvn-"); 55 $tmpname1 = tempnam("temp", "wsvn-");
56 $tmpname = $tmpname1 56 $tmpname = $tmpname1;
57 unlink($tmpname1); 57 unlink($tmpname1);
58 if (mkdir($tmpname)) 58 if (mkdir($tmpname))
59 { 59 {
60 // Get the name of the directory being archived 60 // Get the name of the directory being archived
61 $arcname = substr($path, 0, -1); 61 $arcname = substr($path, 0, -1);