Rev 517 Rev 518
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 $tmpname1 = tempnam("temp", "wsvn-");
-   56 $tmpname = $tmpname1
56 unlink($tmpname); 57 unlink($tmpname1);
57 if (mkdir($tmpname)) 58 if (mkdir($tmpname))
58 { 59 {
59 // Get the name of the directory being archived 60 // Get the name of the directory being archived
60 $arcname = substr($path, 0, -1); 61 $arcname = substr($path, 0, -1);
61 $arcname = basename($arcname); 62 $arcname = basename($arcname);