Bugzilla – Bug 115
TORQUE 2.5.4 does not honor -W umask
Last modified: 2011-03-09 09:10:47 MST
You need to
before you can comment on or make changes to this bug.
Output and error files created by torque 2.5.4 seem to always have permissions
0600 regardless of the value supplied to "#PBS -W umask=0xxx" (both 0000 and
0777 resulted in permissions of 0600).
This worked correctly in torque 2.4.9.
Hmm, it looks like this code has got lost between 2.4 and 2.5 in:
according to this diff:
@@ -6052,11 +6283,6 @@
- if (pjob->ji_wattr[(int)JOB_ATR_umask].at_flags & ATR_VFLAG_SET)
- old_umask =
/* open file */
fds = open(path, mode, 0666);
Looks like it went away in trunk in commit 3477 on March 1st 2010.
This was the only mention of JOB_ATR_umask in the pbs_mom code prior to 2.5,
now there is none.
Hmmmm....it looks like this code was lost when a merge occurred from 2.4. I
will fix this and check it in.
This fix has been tested and checked in. -W umask=... works again and has been
checked in to 2.5, 3.0, and trunk. It appears to be still present in 2.4