mirror of https://gitlab.com/ita1024/waf.git
Do not change permissions on symlinks because this is not used anywhere
This commit is contained in:
parent
b159ecc44f
commit
443985720f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue