From: Michael Tremer Date: Fri, 4 Feb 2022 16:47:46 +0000 (+0000) Subject: strip: Dereference path if it is a symlink X-Git-Tag: v2.27-core165~15^2~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84c2cda03d2ef3d4d4c835e3876bfd09bd294d9;p=ipfire-2.x.git strip: Dereference path if it is a symlink Signed-off-by: Michael Tremer --- diff --git a/src/stripper b/src/stripper index 8689b34dee..fa624815bb 100755 --- a/src/stripper +++ b/src/stripper @@ -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