From nobody Wed Dec 22 10:06:37 2021 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 DD06C1906C9D; Wed, 22 Dec 2021 10:06:43 +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 4JJprb5hkvz4Yxl; Wed, 22 Dec 2021 10:06:39 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 6633F1B4B3; Wed, 22 Dec 2021 10:06:37 +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 1BMA6bHo092912; Wed, 22 Dec 2021 10:06:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BMA6bmS092911; Wed, 22 Dec 2021 10:06:37 GMT (envelope-from git) Date: Wed, 22 Dec 2021 10:06:37 GMT Message-Id: <202112221006.1BMA6bmS092911@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: cef2fa92dcb3 - stable/12 - Apply tentative fix for clang 11 warning in pam_exec(8): 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: cef2fa92dcb3157d93b9f85f24c0d8aab38ed578 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640167602; 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=Pd1i8e3JOF+bcIquyL1hQVzKplh+rAC1ZM4Q3NEzktc=; b=s/GLFrvaVpHBWK7TNqwu4GxdHAnih7MIYoScHC1N/j3DDeHa1XrNjHuZUdXe6G1+Cjka+/ ugnX/lmQyQcw/q55A/c+pNIZyZBgL4ZcHibvPCAmVvT5iVsNIcBvM2nDPlwUT3u+M8eqeg Lqw8ZsKvzTmCZ4lElBRNsY/ilxRuAtnOhKZL8ajCv2rkJ5izPXZSrZy7RnVpNA6dia/TV0 yHfNBhM624N1qY3jkvto7SonrubMfu7lO3Ex5Yif+p9w40O6hwW79+hukMNnzFzd/G5FTl F2kWDKZh1F8Mu07/fDpKEU0n3M42B5cmTm4Q7jOUFQDMwpJ6c4eXAc1UHEALFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640167602; a=rsa-sha256; cv=none; b=AyMU/U7pAoMiejgXd0lyZdPnFc+6A7mkaAQZT4mtE7QjZBLh/G1gwApy7k65VmpEGno4e9 gqmgGYBtzd3w0VVKPwha5QSPFkfH3j56FNqjO1IqUPWZ86qTdruiH97SeanbtM/Eu2Fk02 tzlpU23QqP0ZI0D8HhUkjTgNliql1pZZwhfzbr961+KJOQRE72ibg4OELL7cQWmZMnFAIC G4Rbdv1lfyWLvMZBzhUhRxLl8iED/OtdMX3iEm0fzZWIl8kimWntuZClDPyFh/DkgAxBS4 ZTy/KoLI/+p4rMojjq2SNsvizFLjejcGPhgw1BBwJcFm4COu8Rwk7DC7hDsBJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=cef2fa92dcb3157d93b9f85f24c0d8aab38ed578 commit cef2fa92dcb3157d93b9f85f24c0d8aab38ed578 Author: Dimitry Andric AuthorDate: 2020-08-06 19:31:52 +0000 Commit: Dimitry Andric CommitDate: 2021-12-22 10:01:30 +0000 Apply tentative fix for clang 11 warning in pam_exec(8): lib/libpam/modules/pam_exec/pam_exec.c:222:56: error: format specifies type 'char *' but the argument has type 'const void *' [-Werror,-Wformat] if (asprintf(&envstr, "%s=%s", pam_item_env[i].name, item) < 0) ~~ ^~~~ (cherry picked from commit 228005931ca9c800e306e7b7d4aa0803197fea7d) --- lib/libpam/modules/pam_exec/pam_exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libpam/modules/pam_exec/pam_exec.c b/lib/libpam/modules/pam_exec/pam_exec.c index dc4a47e22c08..d54487e6fc4e 100644 --- a/lib/libpam/modules/pam_exec/pam_exec.c +++ b/lib/libpam/modules/pam_exec/pam_exec.c @@ -216,7 +216,8 @@ _pam_exec(pam_handle_t *pamh, pam_err = pam_get_item(pamh, pam_item_env[i].item, &item); if (pam_err != PAM_SUCCESS || item == NULL) continue; - if (asprintf(&envstr, "%s=%s", pam_item_env[i].name, item) < 0) + if (asprintf(&envstr, "%s=%s", pam_item_env[i].name, + (const char *)item) < 0) OUT(PAM_BUF_ERR); envlist[envlen++] = envstr; envlist[envlen] = NULL;