[www] r1005 - trunk/svn.matroska.org/WebSVN
[email protected] Fri, 26 Aug 2005 18:07:00 +0400 (MSD)
| Newsgroups | gmane.comp.multimedia.matroska.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: robux4
Date: 2005-08-26 18:06:54 +0400 (Fri, 26 Aug 2005)
New Revision: 1005
Modified:
trunk/svn.matroska.org/WebSVN/dl.php
Log:
WebSVN: rmdir() only works on empty dirs...
Modified: trunk/svn.matroska.org/WebSVN/dl.php
===================================================================
--- trunk/svn.matroska.org/WebSVN/dl.php 2005-08-26 13:50:58 UTC (rev 1004)
+++ trunk/svn.matroska.org/WebSVN/dl.php 2005-08-26 14:06:54 UTC (rev 1005)
@@ -50,7 +50,7 @@
// unlikely to occure race condition
// robUx4 - $tmpname = tempnam("temp", "wsvn");
-$tmpname = tempnam($config->tempPath, "wsvn");
+$tmpname = tempnam("", "wsvn");
unlink($tmpname);
if (mkdir($tmpname))
{
@@ -81,16 +81,11 @@
}
else
{
- print "Unable to open file $arcname.tar.gz";
+ print "Unable to open file $arcname.tar.gz / " . getcwd();
}
fclose($fp);
- chdir("/tmp");
-
- rmdir($tmpname);
-
-/* robUx4 -
chdir("..");
// Delete the directory. Why doesn't PHP have a generic recursive directory
@@ -106,6 +101,5 @@
}
@exec($cmd);
-*/
}
?>
\ No newline at end of file