From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F070D15808C for ; Mon, 28 Mar 2022 19:48:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 15A4BE0986; Mon, 28 Mar 2022 19:48:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EEBAEE0986 for ; Mon, 28 Mar 2022 19:48:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0700634131E for ; Mon, 28 Mar 2022 19:48:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2C3C834C for ; Mon, 28 Mar 2022 19:48:02 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1648496838.619f45e405c8525af36c8b860df263838a26ab6e.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/fcaps.eclass X-VCS-Directories: eclass/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 619f45e405c8525af36c8b860df263838a26ab6e X-VCS-Branch: master Date: Mon, 28 Mar 2022 19:48:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e1e465f3-f18e-48d2-98d8-36cc61a1ad97 X-Archives-Hash: fa2ce42b0915b9e43af9aa254539291b commit: 619f45e405c8525af36c8b860df263838a26ab6e Author: Ulrich Müller gentoo org> AuthorDate: Sat Mar 26 09:41:36 2022 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon Mar 28 19:47:18 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=619f45e4 fcaps.eclass: Use arithmetic test for UID Signed-off-by: Ulrich Müller gentoo.org> eclass/fcaps.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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