projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45f8af4
)
GenCode - Ensure separate temp dirs on multi-user system
author
Tim Otten
<totten@civicrm.org>
Thu, 20 Feb 2014 23:39:01 +0000
(15:39 -0800)
committer
Tim Otten
<totten@civicrm.org>
Thu, 20 Feb 2014 23:39:01 +0000
(15:39 -0800)
xml/GenCode.php
patch
|
blob
|
blame
|
history
diff --git
a/xml/GenCode.php
b/xml/GenCode.php
index 7690d4dfd1a4935f053d1e900a7a0b0f6803269c..c4a96a3c9d5faa0076e5ea5a114a30258d34ad35 100644
(file)
--- a/
xml/GenCode.php
+++ b/
xml/GenCode.php
@@
-55,6
+55,9
@@
class CRM_GenCode_Util_File {
}
$newTempDir = $tempDir . '/' . $prefix . rand(1, 10000);
+ if (function_exists('posix_geteuid')) {
+ $newTempDir .= '_' . posix_geteuid();
+ }
if (file_exists($newTempDir)) {
self::removeDir($newTempDir);