From nobody Fri Mar 17 21:01:25 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pdc4P40FWz3yqdp; Fri, 17 Mar 2023 21:01:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pdc4P35Qvz3pRW; Fri, 17 Mar 2023 21:01:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679086885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QB93CKTVOX02fsA0tcibetOyNM9kqN6+57s0/9FDzJo=; b=WbGWZErtGUTZyoMmyNxUag3julGjy19ZtpqkVQIvdQLihOzX+3ED9UXpv93KpZ6circV6z 9UeAQma2pIf8b11jSaY1118cqqvkkD2Uo3vM7/L+OdH4EdyVe6/bNJOwBMmg5cSGCmIAV2 tTGZCuozK1aOLtvEfYT0lhqyUQDxjUwCxmcK93G2Kt3LtLZ4d1Cz0xa13WzI2l9VGqm6Pw i81PfIWdtgtHwYPqf8ovn2z1KCwVFFgyBgemrm3WTECsXfHktICwEJbMX0WiVoDOcVPed3 gkuZKSCNoqQw8QuZbrSB5C7LULb82Hbw/jzQVVQAWfmvTSBW+EFSRxH4zGgQXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679086885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QB93CKTVOX02fsA0tcibetOyNM9kqN6+57s0/9FDzJo=; b=mmzaevY0u+WL12lVp5PmoH4ORbbzdoQUVB/LUxKPqXU1WkcLl5IEYXObJnakjS4qHI/842 mmTPTjBvRytmOmcnv8HuDGYMtezkK7Qc5W86HPWQxSJ6WEHHbEQbn+E2Db4Hlyl/Vu5GDs gy4ACT6aW5JwxhzcCuiuQ68yzfJn7hRTOKyQPn8+Y+REZ1vNi/iQh/0/kBH/2bnv19kHbT JnDXtgAmjDccYdwwCKoSVLFAUybTJi87cE+Byh4oFFhlfeFR7KfYQUVOa6Qf3kXl1dKR0b 8Dw07HSMnZzR16usdaZMzkVSIhcM37UDDcegcUoVfP+fKD/LbDPLgfq5oun4AA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679086885; a=rsa-sha256; cv=none; b=rkpAYh7FmZ3Rld2eTqLRxlnNcBtkw6IMGfcPhSDH5gU2Prji7lWeUYRLD3v3egTpRS8X5p nECU8Hd85gdHVvxetaCF7blYFoZUq9gUDlQeqT28q1soPWRuVIG58Y+ZJ0gTwsLNR2raSv iVYdab5YSmI98rVsP0AoKEzDCw/Gj2EN6DNQ+/918vP3NVxDksazQ+aDeh5VughgJDVNB1 jd7cqRV/0iYJ65k/PyngjvApOSqfIZn9vGdIF+t/rQTsuRVN2hu8A5vuKnMBseliSruotz EoM5tQrMyfsqpGeFsAAiUo6NAzy54mJ24Focs634JLZWPuGHhD1Tx6J7kZQgIw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Pdc4P2BqrzgNX; Fri, 17 Mar 2023 21:01:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32HL1Pj6014998; Fri, 17 Mar 2023 21:01:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32HL1PFA014997; Fri, 17 Mar 2023 21:01:25 GMT (envelope-from git) Date: Fri, 17 Mar 2023 21:01:25 GMT Message-Id: <202303172101.32HL1PFA014997@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: cc123f0dba83 - stable/13 - daemon: initialize mask_orig with sigemptyset() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cc123f0dba83a403db6978cae2232cbbf6ec7f48 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=cc123f0dba83a403db6978cae2232cbbf6ec7f48 commit cc123f0dba83a403db6978cae2232cbbf6ec7f48 Author: Ihor Antonov AuthorDate: 2023-03-02 03:00:41 +0000 Commit: Kyle Evans CommitDate: 2023-03-17 21:01:01 +0000 daemon: initialize mask_orig with sigemptyset() consolidation of variable declarations and initializations in previous commit allowed me to detect that one of the signal masks is not properly initialized with sigemptyset (as man 3 sigsetops demands) Reviewed by: kevans Pull Request: https://github.com/freebsd/freebsd-src/pull/669 (cherry picked from commit 84866cefdfb78488543056173aea78748b77159b) --- usr.sbin/daemon/daemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c index c8ccd8f892fa..9477b2a415e8 100644 --- a/usr.sbin/daemon/daemon.c +++ b/usr.sbin/daemon/daemon.c @@ -171,6 +171,7 @@ main(int argc, char *argv[]) sigemptyset(&mask_susp); sigemptyset(&mask_read); sigemptyset(&mask_term); + sigemptyset(&mask_orig); while ((ch = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) { switch (ch) {