* [gentoo-commits] repo/gentoo:master commit in: eclass/
@ 2022-03-28 19:48 99% Ulrich Müller
0 siblings, 0 replies; 1+ results
From: Ulrich Müller @ 2022-03-28 19:48 UTC (permalink / raw
To: gentoo-commits
commit: 35c94832f16fa949ed7472e6b8ebe128ed333d3a
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 26 09:43:45 2022 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 28 19:47:19 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35c94832
user.eclass: Use arithmetic test for UID
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
eclass/user.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/user.eclass b/eclass/user.eclass
index 581704eae815..ff69be81c1ec 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -85,7 +85,7 @@ user_get_nologin() {
# If -M is passed, enewuser does not create the home directory if it does not
# exist.
enewuser() {
- if [[ ${EUID} != 0 ]] ; then
+ if [[ ${EUID} -ne 0 ]] ; then
ewarn "Insufficient privileges to execute ${FUNCNAME[0]}"
return 0
fi
@@ -240,7 +240,7 @@ enewuser() {
# If -F is passed, enewgroup will always enforce specified GID and fail if it
# can not be assigned.
enewgroup() {
- if [[ ${EUID} != 0 ]] ; then
+ if [[ ${EUID} -ne 0 ]] ; then
ewarn "Insufficient privileges to execute ${FUNCNAME[0]}"
return 0
fi
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-03-28 19:48 99% [gentoo-commits] repo/gentoo:master commit in: eclass/ Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox