From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3756 invoked from network); 3 Jun 2021 21:10:31 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 3 Jun 2021 21:10:31 -0000 Received: (qmail 14655 invoked by uid 89); 3 Jun 2021 21:10:53 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 14648 invoked from network); 3 Jun 2021 21:10:53 -0000 X-Virus-Scanned: Debian amavisd-new at hohnstaedt.de From: Christian Hohnstaedt To: supervision@list.skarnet.org Cc: Christian Hohnstaedt Subject: [PATCH] s6-rc-compile: Fix setting of flag-essential Date: Thu, 3 Jun 2021 23:08:35 +0200 Message-Id: <20210603210835.6111-1-christian@hohnstaedt.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Don't set the bitposition (which is 0 for 'flag-essential') to the flags, but the bit at the position. --- src/s6-rc/s6-rc-compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c index 7aa37ea..c233f1a 100644 --- a/src/s6-rc/s6-rc-compile.c +++ b/src/s6-rc/s6-rc-compile.c @@ -368,7 +368,7 @@ static uint32_t read_flags (int dfd, char const *srcdir, char const *name) if (errno != ENOENT) strerr_diefu6sys(111, "read ", srcdir, "/", name, "/", files[i]) ; } - else flags |= i ; + else flags |= 1 << i ; } return flags ; } -- 2.20.1