From nobody Thu Mar 02 03:01:01 2023 X-Original-To: dev-commits-src-main@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 4PRwpj4cKBz3vjxN; Thu, 2 Mar 2023 03:01:01 +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 4PRwpj3QM9z44Cf; Thu, 2 Mar 2023 03:01:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677726061; 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=uKUo2r1enD7CSZsueBi4OEtNMCA/GqrvXgLsZRRQ1hM=; b=pEXaUm9mFKoqeASuKKy/LIkTRPXfQTHDW+BylNOmi9UNlryNw0qBCUFpBui0mXmd8PfKGN qcCSfPFV7uDxsVjU7Y7fwX0/Us4505oyrqsHUByvOTE0zrFiInb+dHCRT6EmG61Z1z77Ec JwPCWuIIYbZPHu0lc4La4VLtyRTVRSu6+DdwqmLKBYjudW/C05N1h4+a0uKCaJzTqqYRpz w8qcwtG9FTo9YJ6fwMHEo5GakcqNH12rRDF9v5G0Wgl5/hWiawSlg0Tb7PqE1kpCe/IrTO LW0FVr4wwz8lPCisWF1KX9INlc0eyAvmOENcx9nwH2TRM797x7rvnTI+xb1J3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677726061; 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=uKUo2r1enD7CSZsueBi4OEtNMCA/GqrvXgLsZRRQ1hM=; b=Y0HS5UVJyqCMOu5yDVBgGIePy3GlSIDkFcP2FFlpJIwpzda4IYb8NTEmQ+u9lrjeKfIZNB bhZCXK1z4fUYxGeH9//Nco0mkFa4uPzhKwIqe07Z7LBC4hyc3G158Qsf85jRt/GunyXuUV wk5re6B3ZH9iJvA3d+7W/arWH/tYTVlZBZM5jrpffxGnZZXX5XleQMm7ojgk8gzQqr5puK S/dmlp602MNVkj+stIXo5HiTD79rN56jO+54+pM1CybaGccBf9nQwtzCzgXC1j/tTmE88h NlPwGUtbb1+syZrcIkAO/R61dC/4fqOC1g2QUo8iy2E50Ah6q2O69jGCk+n0EA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677726061; a=rsa-sha256; cv=none; b=Cn/nLHlkAaHlxEwYv+h9tVZfzemFg27sgkYWZ5yvBQ0gZMFrDeFbFInOmw6r5lXx/FSIn3 awok/1xdYtYI5J1UN5N/H9cFueKItF6TjCNh+ZgxZ9azYcHe4R4sDevpfb3qRz5BwHqQKl UG7GdWQsRhiBA5VcvKi2BI6ejBVJN+Mk6njyZVN67Lr7Nn4dQOqv77vs6CP61+pQHl1xbk KtjidbO9TFr2LnWlDhpZGcoLaqG5sOjW3mSrUQ/DEzjBD+FfhqUQWE+2/h524d8pVF3d+K USj0MyThmaFS/xnvqsZFd8Yu8mDVcXXxKoxR+PrkJVbgAp+wm0X0Yi14Toj0pg== 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 4PRwpj1vrnz10C2; Thu, 2 Mar 2023 03:01:01 +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 322311JE033946; Thu, 2 Mar 2023 03:01:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32231155033945; Thu, 2 Mar 2023 03:01:01 GMT (envelope-from git) Date: Thu, 2 Mar 2023 03:01:01 GMT Message-Id: <202303020301.32231155033945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 84866cefdfb7 - main - daemon: initialize mask_orig with sigemptyset() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 84866cefdfb78488543056173aea78748b77159b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=84866cefdfb78488543056173aea78748b77159b commit 84866cefdfb78488543056173aea78748b77159b Author: Ihor Antonov AuthorDate: 2023-03-02 03:00:41 +0000 Commit: Kyle Evans CommitDate: 2023-03-02 03:00:41 +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 --- 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) {