From patchwork Mon Mar 27 21:24:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9647567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C3C9B601D7 for ; Mon, 27 Mar 2017 21:27:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B597820007 for ; Mon, 27 Mar 2017 21:27:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA4102819A; Mon, 27 Mar 2017 21:27:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 511AA20007 for ; Mon, 27 Mar 2017 21:27:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635AbdC0V1c (ORCPT ); Mon, 27 Mar 2017 17:27:32 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35419 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751962AbdC0V1c (ORCPT ); Mon, 27 Mar 2017 17:27:32 -0400 Received: by mail-wr0-f195.google.com with SMTP id p52so14122999wrc.2 for ; Mon, 27 Mar 2017 14:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pvDPFv7Q54e3nPFowNfUJ25pdNLjhKci6lh5Sf9Qk4I=; b=BxSBQjQmIA5PD/zmABlwTHPVK+0euAyCMEAl/ZSvn11kBYqh7CK/kh5wsueyyzpF2l 56jLsCHBN9h3OAHn22c5jIGB4OYP6YJ0T3W1MfudA0o/ybOKegn7c8xDLMwotE65xrbY yT3rnPawfu9wTC6OKFNqkEL1GADlNw0nxHrVAMpxW0J1qxODNIagVfOCE26fcdwY64hH HjhkOg5PHbRwFKOoBDCjCqkEAbj1hiAOo+ufyZPaSMRaocMlxyh3Hsj06FDP9bnw1fgf 9LYb01sJ/qEwDcOXUPxm+CWUP37aOKu/zbcYy3/04VEl0C5PTucHFk3a43R3qmo51C0E mZwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pvDPFv7Q54e3nPFowNfUJ25pdNLjhKci6lh5Sf9Qk4I=; b=ti3OPh67WASlQez+3T0AGJ61F+9H9t2BkATl+K4tFEnAD1DEdvnQJwU8OjCHNQHh/1 a2mNdtdsejLABshZECn3ORWUtSbEjDu+xLMKPZRmmIBgjBM0jViDJsrzpB130YAXLi51 9JgHe9tmfk4+VrMLrU8vFgTfbNSFF+BRikxOjLeioMoAZKsH7lwgfiaWJA9oSr2JN0cV 5zs/xKcvk/hD/V3UV+USmarQcHjtnnRo2s98kVYdkEGATJgA2Jx4KTMYFLnZXAVvhUic rPN800K2nTVys015mJvUXBzbB6s3VuY6uv1rM9q6xyBgNGjebeIvNAlGTZnsDS/asnDu c38Q== X-Gm-Message-State: AFeK/H016yfs9GehTWT+xFBNRdhJWp5tSx/97KywZCqEj1J8lkt5WDUx9nte978eeB7Ikw== X-Received: by 10.223.132.163 with SMTP id 32mr22589099wrg.147.1490650035111; Mon, 27 Mar 2017 14:27:15 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:802:b00:496:ae63:aebb:a034]) by smtp.gmail.com with ESMTPSA id k203sm973767wmk.4.2017.03.27.14.27.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Mar 2017 14:27:14 -0700 (PDT) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Christopher Li , Luc Van Oostenryck Subject: [PATCH v6 52/52] llvm: fix creation of sparsec's tmp files Date: Mon, 27 Mar 2017 23:24:16 +0200 Message-Id: <20170327212416.18536-53-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170327212416.18536-1-luc.vanoostenryck@gmail.com> References: <20170327212416.18536-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It seems the intention was to create the tmp files with the suffixes but the files are create without the suffixes (while the filename that is used later is with the suffixes). In all case the non-suffixed file that is created by the mktemp command is never removed and after a while these files begin to pile-up. Better to remove them. Signed-off-by: Luc Van Oostenryck --- sparsec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sparsec b/sparsec index 9dc96c956..e421776e2 100755 --- a/sparsec +++ b/sparsec @@ -29,8 +29,8 @@ while [ $# -gt 0 ]; do shift done -TMPLLVM=`mktemp -t tmp.XXXXXX`".llvm" -TMPFILE=`mktemp -t tmp.XXXXXX`".o" +TMPLLVM=`mktemp -t tmp.XXXXXX.llvm` +TMPFILE=`mktemp -t tmp.XXXXXX.o` $DIRNAME/sparse-llvm $SPARSEOPTS > $TMPLLVM