Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2016-05-02 19:50:11 +0000
committerDavid Williams2016-05-02 19:50:11 +0000
commitf46dd3bb135f9da26bbc4cdf0d84715ab6736762 (patch)
treecd5a0794355dee9e96b262e0f64ab63c043a2d26 /production/bootstrapVariables.shsource
parentfcf51a96f9a5a9cdc384c25780906b94c27a2f7c (diff)
downloadeclipse.platform.releng.aggregator-f46dd3bb135f9da26bbc4cdf0d84715ab6736762.tar.gz
eclipse.platform.releng.aggregator-f46dd3bb135f9da26bbc4cdf0d84715ab6736762.tar.xz
eclipse.platform.releng.aggregator-f46dd3bb135f9da26bbc4cdf0d84715ab6736762.zip
[releng] Yet another test of getting permissions set
Diffstat (limited to 'production/bootstrapVariables.shsource')
-rw-r--r--production/bootstrapVariables.shsource20
1 files changed, 13 insertions, 7 deletions
diff --git a/production/bootstrapVariables.shsource b/production/bootstrapVariables.shsource
index be137314e..988377b82 100644
--- a/production/bootstrapVariables.shsource
+++ b/production/bootstrapVariables.shsource
@@ -137,14 +137,20 @@ buildIdPattern="^[MNIPY][[:digit:]]{8}-[[:digit:]]{4}$"
export buildDirectory
# this should be when we first create buildDirectory
echo "Making buildDirectory: ${buildDirectory}"
- echo "initial umask in bootstrapVariables.shsource: $(umask)"
- umask 0002
- echo "umask after setting in bootstrapVariables.shsource: $(umask)"
- # it appears GID bit is not always set correctly, so we will try to do explicitly
- #mkdir -p --verbose --mode u=rwx,g=rwxs,o=rx "${buildDirectory}"
- mkdir -p --verbose --mode u=rwx,g=rwxs,o=rx $BUILD_ROOT
+ # Testing confirmed that umask was correct initially.
+ #echo "initial umask in bootstrapVariables.shsource: $(umask)"
+ #umask 0002
+ #echo "umask after setting in bootstrapVariables.shsource: $(umask)"
+ # it appears GID bit is not always set correctly.
+ # Appears related to "depth" of directories made.
+ # If we "cd" to parent directory, then it works.
+ # even using --mode u=rwx,g=rwxs,o=rx did not make it correctly.
+ # See https://bugs.eclipse.org/bugs/show_bug.cgi?id=492493
+ #mkdir -p --verbose --mode u=rwx,g=rwxs,o=rx "${buildDirectory}"
+ # Normally $BUILD_ROOT will already exist, but in case not.
+ mkdir -p --verbose $BUILD_ROOT
pushd $BUILD_ROOT
- mkdir -p --verbose --mode u=rwx,g=rwxs,o=rx $BUILD_ID
+ mkdir --verbose $BUILD_ID
popd
else
echo "buildDirectory was already defined as $buildDirectory"

Back to the top