]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
support/scripts/check-bin-arch: fix symbolic link check
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 5 Sep 2017 18:59:04 +0000 (20:59 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 16 Oct 2017 21:00:08 +0000 (23:00 +0200)
Commit c96b8675ea03a5d3194d439f740c725dd239ed1a
("support/scripts/check-bin-arch: ignore symbolic links") was bogus,
because it tested ${f}, which is the relative path of the file inside
${TARGET_DIR}, so we end up testing if ${f} on the system is a
symbolic link.

This commit fixes that by testing ${TARGET_DIR}/${f}.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(cherry picked from commit cb0f3fa13f315a1aa0469d3479673860dcba8eb9)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/check-bin-arch

index 700ee3f65e9a9c3007ac0ed0c694223f73cb1a3f..887b6613cdb8f4afdc23750b2a5d0c7cef635667 100755 (executable)
@@ -38,7 +38,7 @@ while read f; do
 
        # Skip symlinks. Some symlinks may have absolute paths as
        # target, pointing to host binaries while we're building.
-       if [[ -L "${f}" ]]; then
+       if [[ -L "${TARGET_DIR}/${f}" ]]; then
                continue
        fi