Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.
authorZac Medico <zmedico@gentoo.org>
Tue, 19 Feb 2008 05:39:40 +0000 (05:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 19 Feb 2008 05:39:40 +0000 (05:39 -0000)
(trunk r9355)

svn path=/main/branches/2.1.2/; revision=9356

bin/misc-functions.sh

index 17e51056c8fe5ccbd5be5e71107c86d044532168..85d0c37c76f77b6eace8101736bf0660022294dd 100755 (executable)
@@ -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