2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Do not change permissions on symlinks because this is not used anywhere

This commit is contained in:
Thomas Nagy 2016-10-09 21:41:31 +02:00
parent b159ecc44f
commit 443985720f
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -1203,11 +1203,7 @@ class inst(Task.Task):
group = getattr(self, 'install_group', None) or getattr(self.generator, 'install_group', None)
if user or group:
Utils.lchown(tgt, user or -1, group or -1)
if os.path.islink(tgt):
# BSD-specific
if hasattr(os, 'lchmod'):
os.lchmod(tgt, self.chmod)
else:
if not os.path.islink(tgt):
os.chmod(tgt, self.chmod)
def do_link(self, src, tgt, **kw):