summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2022-03-26 10:41:36 +0100
committerUlrich Müller <ulm@gentoo.org>2022-03-28 21:47:18 +0200
commit619f45e405c8525af36c8b860df263838a26ab6e (patch)
tree8cfe80e3e19527b694b18e8892887d1c45cf53e7 /eclass
parentwebapp.eclass: Use UID 0 instead of root (diff)
downloadgentoo-619f45e405c8525af36c8b860df263838a26ab6e.tar.gz
gentoo-619f45e405c8525af36c8b860df263838a26ab6e.tar.bz2
gentoo-619f45e405c8525af36c8b860df263838a26ab6e.zip
fcaps.eclass: Use arithmetic test for UID
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/fcaps.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass
index 8ed27429c938..d1860f5ac9a3 100644
--- a/eclass/fcaps.eclass
+++ b/eclass/fcaps.eclass
@@ -88,7 +88,7 @@ esac
fcaps() {
debug-print-function ${FUNCNAME} "$@"
- if [[ ${EUID} != 0 ]] ; then
+ if [[ ${EUID} -ne 0 ]] ; then
einfo "Insufficient privileges to execute ${FUNCNAME}, skipping."
return 0
fi