Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.
authorZac Medico <zmedico@gentoo.org>
Tue, 19 Feb 2008 05:38:41 +0000 (05:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 19 Feb 2008 05:38:41 +0000 (05:38 -0000)
svn path=/main/trunk/; revision=9355

bin/misc-functions.sh

index 90950999792fd08b22fc9fc7eb641f7230d1330e..c9a1383cf92d17384caefa849079485ee3e6e772 100755 (executable)
@@ -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