summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-08-11 23:28:33 +0100
committerMarek Szuba <marecki@gentoo.org>2021-08-11 23:57:37 +0100
commit2b8b3f2891776506b9045177a317681ace708927 (patch)
tree07972f624430ce0a0e4e220d6a2665b5db1f77bd /app-misc
parentsys-kernel/linux-docs: EAPI=8 and version bump (diff)
downloadgentoo-2b8b3f2891776506b9045177a317681ace708927.tar.gz
gentoo-2b8b3f2891776506b9045177a317681ace708927.tar.bz2
gentoo-2b8b3f2891776506b9045177a317681ace708927.zip
app-misc/mc: simplify the running-as-root check
By looking at ${EUID} we avoid both calling an external program and having to check for FEATURES=-userpriv. Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/mc/mc-4.8.26-r5.ebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/app-misc/mc/mc-4.8.26-r5.ebuild b/app-misc/mc/mc-4.8.26-r5.ebuild
index 9e443ca61fdd..7bd110cd7992 100644
--- a/app-misc/mc/mc-4.8.26-r5.ebuild
+++ b/app-misc/mc/mc-4.8.26-r5.ebuild
@@ -88,7 +88,7 @@ src_configure() {
src_test() {
# Bug #759466
- if ! has userpriv ${FEATURES} && [[ $(id -u) == 0 ]]; then
+ if [[ ${EUID} == 0 ]]; then
ewarn "You are emerging ${PN} as root with 'userpriv' disabled." \
"Expect some test failures, or emerge with 'FEATURES=userpriv'!"
fi