summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-02-19 05:38:41 +0000
committerZac Medico <zmedico@gentoo.org>2008-02-19 05:38:41 +0000
commit7585d95ced3661d3e25f6dd8df16fe116ae4bccb (patch)
treee34682676c474a4fcb41c5a9b68b1f65257069e4 /bin/misc-functions.sh
parente38811369ed6be37a8a9e142ba39d46881f09052 (diff)
downloadportage-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
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-xbin/misc-functions.sh2
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