1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 11:00:10 +01:00

Permission check correct file

This commit is contained in:
Ciaran Gultnieks 2013-11-23 10:56:58 +00:00
parent 9f6f76c1ad
commit 0231409224

View File

@ -47,7 +47,7 @@ def read_config(opts, config_file='config.py'):
sys.exit(2) sys.exit(2)
st = os.stat(config_file) st = os.stat(config_file)
if st.st_mode & stat.S_IRWXG or st.st_mode & stat.S_IRWXO: if st.st_mode & stat.S_IRWXG or st.st_mode & stat.S_IRWXO:
print "WARNING: unsafe permissions on config.py (should be 0600)!" print "WARNING: unsafe permissions on {0} (should be 0600)!".format(config_file)
options = opts options = opts
if not hasattr(options, 'verbose'): if not hasattr(options, 'verbose'):