wafsamba: Do not chmod already existing dirs on install
authorAndreas Schneider <asn@samba.org>
Tue, 5 Sep 2017 12:18:44 +0000 (14:18 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 15 Sep 2017 22:57:24 +0000 (00:57 +0200)
This might break backward compatibility.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12957

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/wafsamba.py

index 57913af2bd72705e81fd7b68f10a8656758721f8..f91adca1a0ca0960635457f9ab2821e653584f04 100644 (file)
@@ -900,8 +900,6 @@ def INSTALL_DIR(bld, path, chmod=0o755):
             except OSError, e:
                 if not os.path.isdir(path):
                     raise Utils.WafError("Cannot create the folder '%s' (error: %s)" % (path, e))
-        else:
-            os.chmod(path, chmod)
 Build.BuildContext.INSTALL_DIR = INSTALL_DIR
 
 def INSTALL_DIRS(bld, destdir, dirs, chmod=0o755):