From: Zac Medico Date: Tue, 19 Feb 2008 05:39:40 +0000 (-0000) Subject: Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash. X-Git-Tag: v2.1.5~376 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3d282f932d98123cf6a0c13ba23423efe151bd4e;p=portage.git Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash. (trunk r9355) svn path=/main/branches/2.1.2/; revision=9356 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 17e51056c..85d0c37c7 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -468,7 +468,7 @@ preinst_suid_scan() { vecho ">>> Performing suid scan in ${D}" for i in $(find "${D}" -type f \( -perm -4000 -o -perm -2000 \) ); do if [ -s "${sfconf}" ]; then - suid="$(grep "^${i/${D}}$" "${sfconf}")" + suid="$(grep "^/${i#${D}}$" "${sfconf}")" if [ "${suid}" = "${i/${D}}" ]; then vecho "- ${i/${D}} is an approved suid file" else