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