Correcting os.chmod usage in lb init.
authorDaniel Baumann <mail@daniel-baumann.ch>
Mon, 28 Apr 2014 17:48:33 +0000 (19:48 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 28 Apr 2014 17:48:33 +0000 (19:48 +0200)
components/init

index af90598..fcf5e06 100755 (executable)
@@ -144,11 +144,11 @@ def main():
        os.makedirs('config/includes.source', exist_ok=True)
 
        # Ensure correct include directory permissions avoiding tainting of target system
-       os.chmod('config/includes', 0755)
-       os.chmod('config/includes.bootstrap', 0755)
-       os.chmod('config/includes.chroot', 0755)
-       os.chmod('config/includes.binary', 0755)
-       os.chmod('config/includes.source', 0755)
+       os.chmod('config/includes', 0o755)
+       os.chmod('config/includes.bootstrap', 0o755)
+       os.chmod('config/includes.chroot', 0o755)
+       os.chmod('config/includes.binary', 0o755)
+       os.chmod('config/includes.source', 0o755)
 
        # Configuring default package lists
        os.makedirs('config/package-lists', exist_ok=True)