]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
strip: Dereference path if it is a symlink
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Feb 2022 19:02:38 +0000 (19:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Feb 2022 13:33:54 +0000 (13:33 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/stripper

index 8689b34dee6733d3ab149731c89a4a66c996fc53..fa624815bb1b81267a8f8c0762cc7563a1067e24 100755 (executable)
@@ -61,7 +61,7 @@ function _strip() {
 }
 
 for path in ${paths[@]}; do
-       for file in $(find "${path}" -xdev "${excludes[@]}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 2>/dev/null); do
+       for file in $(find -H "${path}" -xdev "${excludes[@]}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 2>/dev/null); do
                _strip "${file}" || exit $?
        done
 done