diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-02-19 05:38:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-02-19 05:38:41 +0000 |
commit | 7585d95ced3661d3e25f6dd8df16fe116ae4bccb (patch) | |
tree | e34682676c474a4fcb41c5a9b68b1f65257069e4 | |
parent | e38811369ed6be37a8a9e142ba39d46881f09052 (diff) | |
download | portage-7585d95ced3661d3e25f6dd8df16fe116ae4bccb.tar.gz portage-7585d95ced3661d3e25f6dd8df16fe116ae4bccb.tar.bz2 portage-7585d95ced3661d3e25f6dd8df16fe116ae4bccb.zip |
Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.
svn path=/main/trunk/; revision=9355
-rwxr-xr-x | bin/misc-functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 909509997..c9a1383cf 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -494,7 +494,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 |