1 |
commit: 619f45e405c8525af36c8b860df263838a26ab6e |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 09:41:36 2022 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 28 19:47:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=619f45e4 |
7 |
|
8 |
fcaps.eclass: Use arithmetic test for UID |
9 |
|
10 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
11 |
|
12 |
eclass/fcaps.eclass | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass |
16 |
index 8ed27429c938..d1860f5ac9a3 100644 |
17 |
--- a/eclass/fcaps.eclass |
18 |
+++ b/eclass/fcaps.eclass |
19 |
@@ -88,7 +88,7 @@ esac |
20 |
fcaps() { |
21 |
debug-print-function ${FUNCNAME} "$@" |
22 |
|
23 |
- if [[ ${EUID} != 0 ]] ; then |
24 |
+ if [[ ${EUID} -ne 0 ]] ; then |
25 |
einfo "Insufficient privileges to execute ${FUNCNAME}, skipping." |
26 |
return 0 |
27 |
fi |