projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16c5baa
)
Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 19 Feb 2008 05:39:40 +0000
(
05:39
-0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/bin/misc-functions.sh
b/bin/misc-functions.sh
index 17e51056c8fe5ccbd5be5e71107c86d044532168..85d0c37c76f77b6eace8101736bf0660022294dd 100755
(executable)
--- 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