-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--umask doesn't support non-decimal values #1325
Comments
It's not expected to give the umask as hexadecimal? Why do you need it? |
I don't find any int i = (int)umask(mask);
return PyLong_FromLong((long)i); |
@benoitc well.. I didn't actually want to use hexadecimal, it was just the easiest example to show Gunicorn not working as documented. Octal, on the other hand, is much friendlier than decimal for setting a umask and I spent quite a while trying to figure out why my permissions were all wrong before I realised the octal number I'd passed to Gunicorn ( |
@berkerpeksag there's an That just doesn't seem to apply at the right stage in the processing of arguments... or something.. I'm not sure. |
ok so the real issue is the validation: we need to make sure we can handle the octal version. |
The documentation says that Gunicorn should accept "a string compatible with
int(value, 0)
". I don't know about in a config file, but when specifying via the command line (--umask
,-m
), only integers are supported. Hex strings are rejected...... and octals seem to be treated as decimals.
The text was updated successfully, but these errors were encountered: