From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A4D5C138334 for ; Sat, 23 Mar 2019 09:52:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70A22E0A4F; Sat, 23 Mar 2019 09:52:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 487B1E0A4F for ; Sat, 23 Mar 2019 09:52:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0CE44335D15 for ; Sat, 23 Mar 2019 09:52:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8912D589 for ; Sat, 23 Mar 2019 09:52:42 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1553328668.479b2386c8de40a17bc4de4c0723f8c189f14a90.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_cmdline.sh genkernel X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 479b2386c8de40a17bc4de4c0723f8c189f14a90 X-VCS-Branch: master Date: Sat, 23 Mar 2019 09:52:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 68e6ccfb-b666-477c-98e0-17b435f4cc21 X-Archives-Hash: 4c3a194688af9231aa7656a6acf55274 commit: 479b2386c8de40a17bc4de4c0723f8c189f14a90 Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Mar 23 06:36:00 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Mar 23 08:11:08 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=479b2386 Use mktemp for $TEMP Signed-off-by: Thomas Deutschmann gentoo.org> gen_cmdline.sh | 2 +- genkernel | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gen_cmdline.sh b/gen_cmdline.sh index 9bdc157..051350a 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -564,7 +564,7 @@ parse_cmdline() { ;; --tempdir=*) TMPDIR="${*#*=}" - TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$ + TEMP=$(mktemp -d -p "${TMPDIR}" gk.XXXXXXXX) print_info 2 "TMPDIR: ${TMPDIR}" print_info 2 "TEMP: ${TEMP}" ;; diff --git a/genkernel b/genkernel index eca6ea0..c8a9925 100755 --- a/genkernel +++ b/genkernel @@ -44,7 +44,7 @@ source ${GK_SHARE}/gen_moddeps.sh || gen_die "Could not read ${GK_SHARE}/gen_mod source ${GK_SHARE}/gen_package.sh || gen_die "Could not read ${GK_SHARE}/gen_package.sh" source ${GK_SHARE}/gen_bootloader.sh || gen_die "Could not read ${GK_SHARE}/gen_bootloader.sh" -TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$ +TEMP=$(mktemp -d -p "${TMPDIR}" gk.XXXXXXXX) trap_cleanup(){ # Call exit code of 1 for failure