From b7511e3fa0df672422c18e1115dffc71b63f8191 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 5 Oct 2017 11:43:36 +0200 Subject: [PATCH] Fix octal number in python script to it compiles --- modules/onion/files/create-onionbalance-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/onion/files/create-onionbalance-config b/modules/onion/files/create-onionbalance-config index 4df5e7095..d0b97fbb6 100755 --- a/modules/onion/files/create-onionbalance-config +++ b/modules/onion/files/create-onionbalance-config @@ -75,7 +75,7 @@ for s in service_instances: relkeyfile = os.path.join(relkeydir, s+'.key') if not os.path.exists(keyfile): subprocess.check_call(['openssl', 'genrsa', '-out', keyfile, '1024'], - preexec_fn=lambda: os.umask(0027)) + preexec_fn=lambda: os.umask(0o027)) shutil.chown(keyfile, group='onionbalance') os.chmod(keyfile, 0o640) -- 2.20.1