summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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