Rev 516 Rev 517
Line 50... Line 50...
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 //$tmpnam1 = tempnam("temp", "wsvn"); 53 //$tmpnam1 = tempnam("temp", "wsvn");
54 //$tmpname2 = tempnam("temp", "wsvn"); 54 //$tmpname2 = tempnam("temp", "wsvn");
55 $tmpname = tempnam("temp", "wsvn"); 55 $tmpname = tempnam("temp", "wsvn-");
56 unlink($tmpname); 56 unlink($tmpname);
57 if (mkdir("ble_".$tmpname)) 57 if (mkdir($tmpname))
58 { 58 {
59 // Get the name of the directory being archived 59 // Get the name of the directory being archived
60 $arcname = substr($path, 0, -1); 60 $arcname = substr($path, 0, -1);
61 $arcname = basename($arcname); 61 $arcname = basename($arcname);
62 if (empty($arcname)) 62 if (empty($arcname))