From patchwork Thu Feb 7 22:50:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Tobin C. Harding" X-Patchwork-Id: 10802313 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BC7961390 for ; Fri, 8 Feb 2019 00:47:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC8AD2DE1A for ; Fri, 8 Feb 2019 00:47:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F7FD2E636; Fri, 8 Feb 2019 00:47:12 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id D72472DE1A for ; Fri, 8 Feb 2019 00:47:11 +0000 (UTC) Received: (qmail 26066 invoked by uid 550); 8 Feb 2019 00:47:03 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Delivered-To: moderator for kernel-hardening@lists.openwall.com Received: (qmail 3603 invoked from network); 7 Feb 2019 22:51:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=rl9IOz7bUSqbOMyGkhPi6aRMwmI5d43wx7DRds0uh/4=; b=j//XwNNY x67JRCHmIIU1wa4IoY4O5vgv0aGupjDmbAAT+hm+yqE+lz5ZbD1i4Tu6qqeC57uK e4Zrnfly5CZsWHZ3K98wZY7axHfgSvLtObu2hk74++g6rozSN8HFcIEMaAudKSfC 3K9iCCa6fLfhyM/4wraKWrSgDvD7mTCLNBBMvukHv9cSNT+J31GMOQm7uQg0qYXD 0AqPDld20Nz77IKJ7Bte1apee7YJy8zSHBT37EeoecPCiIYxOeSb9GwGMoJmRO8T 8zXiI4TOK6mq70llkv4cjVJCHdkhrMkccGNTG2S1iy0rw9AO0h25svMh4Y1eKlg7 GCnJwhPI2G+/8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrledugddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojg hfggfgsedtkeertdertddtnecuhfhrohhmpedfvfhosghinhcuvedrucfjrghrughinhhg fdcuoehtohgsihhnsehkvghrnhgvlhdrohhrgheqnecukfhppeduvddurdeggedrudelle druddtleenucfrrghrrghmpehmrghilhhfrhhomhepthhosghinheskhgvrhhnvghlrdho rhhgnecuvehluhhsthgvrhfuihiivgepud X-ME-Proxy: From: "Tobin C. Harding" To: kernel-hardening@lists.openwall.com Cc: "Tobin C. Harding" , Tycho Andersen , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] leaking_addresses: Expand tilde in output file name Date: Fri, 8 Feb 2019 09:50:26 +1100 Message-Id: <20190207225026.11723-4-tobin@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190207225026.11723-1-tobin@kernel.org> References: <20190207225026.11723-1-tobin@kernel.org> MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Currently if user passes an output file to the script via --output-raw we do not handle expansion of tilde. Use perl function glob() to expand tilde in output file name. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl index ef9e5b2a1614..ce545ca3fb70 100755 --- a/scripts/leaking_addresses.pl +++ b/scripts/leaking_addresses.pl @@ -150,7 +150,7 @@ if (!(is_supported_architecture() or $opt_32bit or $page_offset_32bit)) { } if ($output_raw) { - open my $fh, '>', $output_raw or die "$0: $output_raw: $!\n"; + open my $fh, '>', glob($output_raw) or die "$0: $output_raw: $!\n"; select $fh; }