Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114929 - www-apache/mod_umask conf file error
Summary: www-apache/mod_umask conf file error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-08 15:59 UTC by Kagon
Modified: 2006-06-06 03:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kagon 2005-12-08 15:59:40 UTC
After uncommenting the following segment of
"/etc/apache2/modules.d/47_mod_umask.conf" the behaviour was unexpected:

# This is usefull for group-write-access, such as used in subversion
# UMask 002

The proper UMask statement appears to be:

UMask 0002



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Christian Parpart (RETIRED) gentoo-dev 2005-12-09 05:32:25 UTC
um... why *appears* to be? did you test it? didn't it work for "002" and did 
work for "0002"? 
 
I'd wonder when it wouldn't work with 002. hmm.... 
Comment 2 Kagon 2005-12-09 07:42:43 UTC
Yep, works with "0002" and doesn't work with "002".

[I--] [  ] net-www/apache-2.0.54-r31 (2)

is what I have installed. Could this have something to do with bug fizes/changes
in later versions of Apache2?

The umask command when executed as "umask 002" usually sets the umask to "0002"
could this be the confusion?

callan@wizard ~ $ umask
0022
callan@wizard ~ $ umask 002
callan@wizard ~ $ umask
0002
Comment 3 Christian Parpart (RETIRED) gentoo-dev 2005-12-17 13:36:13 UTC
(In reply to comment #2)
> Yep, works with "0002" and doesn't work with "002".
> 
> [I--] [  ] net-www/apache-2.0.54-r31 (2)
> 
> is what I have installed. Could this have something to do with bug fizes/changes
> in later versions of Apache2?
> 
> The umask command when executed as "umask 002" usually sets the umask to "0002"
> could this be the confusion?
> 
> callan@wizard ~ $ umask
> 0022
> callan@wizard ~ $ umask 002
> callan@wizard ~ $ umask
> 0002

AFAIK because the leading 0 in 0002 comes from programming language C/C++/... where this declares the number do have a base of 8, meaning this number is a octal number. While umasks are usually *always* specified octal it might be that the umask console tool will handle this.

Looks like we've to look at mod_umask's sources, or just ask chipig on this issue ;)
Comment 4 Luca Longinotti (RETIRED) gentoo-dev 2006-06-05 06:45:08 UTC
Hi chipig, could you shed any light on this? Thanks!
Best regards, CHTEKK.
Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2006-06-06 03:43:07 UTC
mod_umask passes the configuration value straight to umask(2), so yes, this is interpreted as octal only with a 0 prefix. fixed in place (no revbump)