diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wafadmin/Build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/wafadmin/Build.py b/tools/wafadmin/Build.py index 10700ec20e4..07904868cee 100644 --- a/tools/wafadmin/Build.py +++ b/tools/wafadmin/Build.py @@ -773,7 +773,7 @@ class BuildContext(Utils.Context): try: shutil.copy2(src, tgt) - os.chmod(tgt, chmod) + if chmod < 0: os.chmod(tgt, chmod) except IOError: try: os.stat(src) |