Rev 511 Rev 512
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 $tmpfile1 = tempnam("temp", "wsvn"); 53 $tmpfile1 = tempnam("temp", "wsvn");
54 $tmpfile2 = tempnam("temp", "wsvn"); 54 $tmpfile2 = tempnam("temp", "wsvn");
55 $tempname = $tmpfile1.$tmpfile2; 55 $tmpname = $tmpfile1.$tmpfile2;
56 if (mkdir($tmpname)) 56 if (mkdir($tmpname))
57 { 57 {
58 // Get the name of the directory being archived 58 // Get the name of the directory being archived
59 $arcname = substr($path, 0, -1); 59 $arcname = substr($path, 0, -1);
60 $arcname = basename($arcname); 60 $arcname = basename($arcname);