aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2022-07-26 20:49:25 +0200
committerFabian Groffen <grobian@gentoo.org>2022-07-27 10:16:21 +0200
commit54080c141fd2ee6fdb6827b95e5a21d72b0c82a1 (patch)
tree74639f969a27c459a8af61691ad2c4db4ba0d4e7
parentResolverPlayground: unconditionally setup essential_binaries (diff)
downloadportage-54080c141fd2ee6fdb6827b95e5a21d72b0c82a1.tar.gz
portage-54080c141fd2ee6fdb6827b95e5a21d72b0c82a1.tar.bz2
portage-54080c141fd2ee6fdb6827b95e5a21d72b0c82a1.zip
bin/install-qa-check.d/90world-writable: include EPREFIX in reports
It is much less confusing and consistent to report full paths including the leading EPREFIX. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--bin/install-qa-check.d/90world-writable4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/install-qa-check.d/90world-writable b/bin/install-qa-check.d/90world-writable
index 820683bd6..c69c43444 100644
--- a/bin/install-qa-check.d/90world-writable
+++ b/bin/install-qa-check.d/90world-writable
@@ -2,7 +2,7 @@
world_writable_check() {
# Now we look for all world writable files.
- local unsafe_files=$(find "${ED}" -type f -perm -2 | sed -e "s:^${ED}:/:")
+ local unsafe_files=$(find "${ED}" -type f -perm -2 | sed -e "s:^${D}:/:")
local OLDIFS x prev_shopts=$-
OLDIFS=$IFS
@@ -19,7 +19,7 @@ world_writable_check() {
eqawarn
fi
- local unsafe_files=$(find "${ED}" -type f '(' -perm -2002 -o -perm -4002 ')' | sed -e "s:^${ED}:/:")
+ local unsafe_files=$(find "${ED}" -type f '(' -perm -2002 -o -perm -4002 ')' | sed -e "s:^${D}:/:")
if [[ -n ${unsafe_files} ]] ; then
eqawarn "QA Notice: Unsafe files detected (set*id and world writable)"