From 1c0e539cbbcb78b25a5dbbbf86ac5dc272e532bb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 28 Feb 2011 18:53:36 +1100 Subject: wafsamba: don't follow symlinks outside the build tree when computing stale files, don't follow symlinks that are not within the build tree --- buildtools/wafsamba/stale_files.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buildtools') 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' ]: -- cgit