From 7585d95ced3661d3e25f6dd8df16fe116ae4bccb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 19 Feb 2008 05:38:41 +0000 Subject: Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash. svn path=/main/trunk/; revision=9355 --- bin/misc-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-1-g7c22