[PATCH] world-writable: tune for Prefix
Fabian Groffen <[email protected]> Mon, 25 Jul 2022 18:41:18 +0200
| Newsgroups | gmane.linux.gentoo.portage.devel |
|---|---|
| Organization | Gentoo Foundation, Inc. |
| Message-ID | <Yt7Hrg/[email protected]> |
--KgaR5bzcvfobJD1B Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 <[email protected]> diff --git a/bin/install-qa-check.d/90world-writable b/bin/install-qa-check= =2Ed/90world-writable index 820683bd6..90b961a86 100644 --- a/bin/install-qa-check.d/90world-writable +++ b/bin/install-qa-check.d/90world-writable @@ -2,7 +2,7 @@ =20 world_writable_check() { # Now we look for all world writable files. - local unsafe_files=3D$(find "${ED}" -type f -perm -2 | sed -e "s:^${ED}:/= :") + local unsafe_files=3D$(find "${ED}" -type f -perm -2 | sed -e "s:^${D}:/:= ") local OLDIFS x prev_shopts=3D$- =20 OLDIFS=3D$IFS @@ -19,7 +21,7 @@ world_writable_check() { eqawarn fi =20 - local unsafe_files=3D$(find "${ED}" -type f '(' -perm -2002 -o -perm -400= 2 ')' | sed -e "s:^${ED}:/:") + local unsafe_files=3D$(find "${ED}" -type f '(' -perm -2002 -o -perm -400= 2 ')' | sed -e "s:^${D}:/:") if [[ -n ${unsafe_files} ]] ; then eqawarn "QA Notice: Unsafe files detected (set*id and world writable)" =20 --=20 Fabian Groffen Gentoo on a different level --KgaR5bzcvfobJD1B Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEELUvHd/Gtp7LaU1vuzpXahU5EQpMFAmLex64ACgkQzpXahU5E QpP7ewgAofSKfB3FPwuhl9WBqJIR22MK5YpGaCPiv3QZ8jRqnMVyAoReQ9Ly0d93 G1Vab+RLPSqLywDl+ndid/McjPOn/Yy+HhkHzOul+ZukKEiwhZzLUsBqgif3gTOq usdjdF3JoPXvKsCP/5SvMAknZIe+Re/tSZ3EJLPTiBfwFVwxWH+l3v85Ac6MEZky eNxADbr/QIchCxtOKZx9RijOLUcpBxyRmeuXdtmaCobuysZBnO6sK/yaA5vIMmgt M36uaurmY+aHi4+EV/q0nsEO/neLA8RoONwh10OTqhXErUJFzpebuvl8jihFlGyQ MdVzWKlHsSefKbqmsfldzPUycnXKyw== =hqUa -----END PGP SIGNATURE----- --KgaR5bzcvfobJD1B--