summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-28 18:53:36 +1100
committerAndrew Tridgell <tridge@samba.org>2011-03-15 12:22:18 +1100
commit1c0e539cbbcb78b25a5dbbbf86ac5dc272e532bb (patch)
tree2a37ed5e5c944c4fd35a9a75bb71ffbc8ec59a08
parent59be7265ad8e0d923ab3856fed41ab43ffdf1269 (diff)
downloadsamba-1c0e539cbbcb78b25a5dbbbf86ac5dc272e532bb.tar.gz
samba-1c0e539cbbcb78b25a5dbbbf86ac5dc272e532bb.tar.bz2
samba-1c0e539cbbcb78b25a5dbbbf86ac5dc272e532bb.zip
wafsamba: don't follow symlinks outside the build tree
when computing stale files, don't follow symlinks that are not within the build tree
-rw-r--r--buildtools/wafsamba/stale_files.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/stale_files.py b/buildtools/wafsamba/stale_files.py
index dd4270dfde..2b94f0823e 100644
--- a/buildtools/wafsamba/stale_files.py
+++ b/buildtools/wafsamba/stale_files.py
@@ -73,7 +73,9 @@ def replace_refill_task_list(self):
for f in files:
p = root + '/' + f
if os.path.islink(p):
- p = os.readlink(p)
+ link = os.readlink(p)
+ if link[0:bin_base_len] == bin_base:
+ p = link
if f in ['config.h']:
continue
if f[-2:] not in [ '.c', '.h' ]: