diff --git a/weboob/core/backendscfg.py b/weboob/core/backendscfg.py index c35f3fd2..26ca702c 100644 --- a/weboob/core/backendscfg.py +++ b/weboob/core/backendscfg.py @@ -41,9 +41,13 @@ class BackendsConfig(object): try: mode = os.stat(confpath).st_mode except OSError: - if re.match('^(win32|freebsd[0-9]*)$', sys.platform): + if if sys.platform == 'win32': fptr = open(confpath,'w') fptr.close() + elif re.match('freebsd[0-9]*', sys.platform): + fptr = open(confpath,'w') + fptr.close() + os.chmod(confpath, 0600) else: os.mknod(confpath, 0600) else: