From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 12 Feb 2024 10:22:39 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rZSWN-003Apf-2r for lore@lore.pengutronix.de; Mon, 12 Feb 2024 10:22:39 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rZSWN-0002Rq-By; Mon, 12 Feb 2024 10:22:39 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rZSVt-0002Rc-Fs; Mon, 12 Feb 2024 10:22:09 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZSVt-000G3C-3Y; Mon, 12 Feb 2024 10:22:09 +0100 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rZSVt-006Lwy-0B; Mon, 12 Feb 2024 10:22:09 +0100 From: Roland Hieber To: ptxdist@pengutronix.de Date: Mon, 12 Feb 2024 10:22:00 +0100 Message-Id: <20240212092200.1514323-1-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] git-ptx-refresh-tags-editor: use mktemp instead of tempfile X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Debian 12 (bookworm), tempfile comes from debianutils, and prints a deprecation warning: WARNING: tempfile is deprecated; consider using mktemp instead. Switch to mktemp from coreutils, which is widely available. Signed-off-by: Roland Hieber --- scripts/git-ptx-refresh-tags-editor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/git-ptx-refresh-tags-editor b/scripts/git-ptx-refresh-tags-editor index fcc9c78f3c7d..0177ad3a0194 100755 --- a/scripts/git-ptx-refresh-tags-editor +++ b/scripts/git-ptx-refresh-tags-editor @@ -26,7 +26,7 @@ push_tags() { filter_rebase() { file="${1}" - tmpfile="$(tempfile -d "$(dirname "${file}")" -p "$(basename ${file}).")" + tmpfile="$(mktemp "${file}.XXXXX")" tags= cat "${file}" | while read cmd commitish subject; do case "${cmd}" in -- 2.39.2