manniru / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

storage file permissions are executable #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://google-api-python-client.googlecode.com/hg/docs/epy/oauth2client.multisto
re_file-pysrc.html#_MultiStore._create_file_if_needed

sets permission to 0177, which is executable (the 1 bit). Changing this to 0066 
would preserve the read/write, and have it not executable.

Original issue reported on code.google.com by jasm...@google.com on 22 Mar 2013 at 2:37

GoogleCodeExporter commented 9 years ago
The 0177 is passed to umask, which inverts the bits.

http://stackoverflow.com/questions/10291131/how-to-use-os-umask-in-python

Original comment by jcgregorio@google.com on 22 Mar 2013 at 2:44

GoogleCodeExporter commented 9 years ago
I see. However, the resulting file is certainly executable when I run it.

Original comment by jasm...@google.com on 22 Mar 2013 at 3:14