projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e388113
)
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:38:41 +0000
(
05:38
-0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/bin/misc-functions.sh
b/bin/misc-functions.sh
index 90950999792fd08b22fc9fc7eb641f7230d1330e..c9a1383cf92d17384caefa849079485ee3e6e772 100755
(executable)
--- 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