Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 379359 - buildid directory being created without group write permission
Summary: buildid directory being created without group write permission
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.2 RC1   Edit
Assignee: David Williams CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 17:18 EDT by David Williams CLA
Modified: 2012-05-13 19:27 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2012-05-13 17:18:17 EDT
Its a mystery as to why, but the the main build directories under "drops4" and "drops" are not being created with right permissions. under "drops4" they are missing the group w, under drops, they are missing that, plus the groups GUID bit. 

"updates" (for eclipse 4I builds) seem right: 

drwxrwsr-x+ 5 e4Build        eclipse.platform.releng 4K 2012-05-13 15:22 I20120513-1300/

I'm going to add umask 0002 to "masterBuild" just to make sure it is what we think it is (that should be the default, but, just to make sure).
Comment 1 David Williams CLA 2012-05-13 19:24:59 EDT
Well, still a mystery as to why, but explicitly setting umask seems to have fixed this (judging from 7 PM build that just stated: 

drwxrwsr-x+  2 e4Build eclipse.platform.releng 4096 2012-05-13 19:02 I20120513-1900

Even though build as a whole was canceled, I'm fairly sure this was the reason for the fix, since, the the script I put in in 'masterBuild' prints out this: 

umask explicitly set to 0002, old value was 0022

Which is odd, since just logging in to e4Build has the value set to 0002. 

Ah, I guess "from a cron job" does have a different environment (e.g. no path, no bashrc ran) so ... guess "the system" has a default of 022, even though a "user default" is 002. 

But ... this doesn't really explain why it's correct in some places and wrong it others ... but ... setting the umask is obviously required, so will count this bug as fixed, and open others if other things are also wrong. 

For the reference, the script I added was: 

oldumask=`umask`
umask 0002
echo "umask explicitly set to 0002, old value was $oldumask"
Comment 2 David Williams CLA 2012-05-13 19:27:54 EDT
While I'd not call this the "cause" (obviously many interactions) this might be part of the complication of bug 378708.