From 3d282f932d98123cf6a0c13ba23423efe151bd4e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 19 Feb 2008 05:39:40 +0000 Subject: [PATCH] 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 --- bin/misc-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2