You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/01/14 16:43:45 UTC

[49/50] [abbrv] airavata-php-gateway git commit: fixing umask issue

fixing umask issue


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/430bf48c
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/430bf48c
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/430bf48c

Branch: refs/heads/develop
Commit: 430bf48c33aa5cc9d73197c951f107e54f0c5812
Parents: f5e39e5
Author: scnakandala <su...@gmail.com>
Authored: Wed Jan 13 16:39:12 2016 -0500
Committer: scnakandala <su...@gmail.com>
Committed: Wed Jan 13 16:39:12 2016 -0500

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/430bf48c/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 5c881a4..fafd1f2 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -368,11 +368,13 @@ class ExperimentUtilities
                 ExperimentUtilities::$relativeExperimentDataDir;
         } while (is_dir(ExperimentUtilities::$experimentPath)); // if dir already exists, try again
         // create upload directory
+        $old_umask = umask(0);
         if (!mkdir(ExperimentUtilities::$experimentPath, 0777, true)) {
             CommonUtilities::print_error_message('<p>Error creating upload directory!
             Please try again later or report a bug using the link in the Help menu.</p>');
             $experimentAssemblySuccessful = false;
         }
+        umask($old_umask);
     }
 
     /**