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
1 changed files with 1 additions and 5 deletions

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):