From patchwork Mon Oct 7 18:18:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 2481 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 46n7z42vLcz3yqX for ; Mon, 7 Oct 2019 18:18:56 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46n7z40CFvz2M4; Mon, 7 Oct 2019 18:18:56 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46n7z35qN9z2yHh; Mon, 7 Oct 2019 18:18:55 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 46n7z20XcBz2yCL for ; Mon, 7 Oct 2019 18:18:54 +0000 (UTC) Received: from [127.0.0.1] (unknown [149.202.170.60]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 46n7z06zctz2M4 for ; Mon, 7 Oct 2019 18:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1570472333; 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: in-reply-to:in-reply-to:references:references; bh=PXKsE7jf6Cx5qdx6/W5j5Vcdyv+/lW0ttcN9mPivOlo=; b=JCAC6w8FU7u8oSNsY4XFzbQt+s+u9REpFEpJdUWoql9UzgUHDV8QE+6We9n/fbIER0S7nt zgQ0OBvrKUoBN5oWZpQ/BYiW0JRKhFvu2wptuZdSYDrhA//h0o6CL3EmA7zAKnmURLehqq RHsdzQVP7OgPCSBlFy0Vkpbqzsm9bBRqvAPtMSlDGN9DN32ElmxYUEBYadlON2VRcbZ/FB 7s2J9ofbKe8APingIbvQAIV+coVTTt+UF9eklf2qFqvB/8VttNgPB8ASWmTx9xAybDKgpa 06XY4pGdVYHc0nJcTZdw6L7UUElQypYdVk5dkzHt1jlRRB0g2+7kAjRqxtCtjw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1570472333; 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: in-reply-to:in-reply-to:references:references; bh=PXKsE7jf6Cx5qdx6/W5j5Vcdyv+/lW0ttcN9mPivOlo=; b=y9wAlUCs1DzsTIM3UtVMoDlk+xaiWQw76eIHNpvr3S4T/YdoG0lLgbpKVGbwhm2QuFJM84 gP570DqZhtxBt9Aw== Subject: [PATCH 5/7] readline: add patch 001 for version 8.0 From: peter.mueller@ipfire.org To: "IPFire: Development-List" References: <3543dab0-7713-89bc-ea57-30e5f348d1e6@ipfire.org> <1c9a3727-c220-2d75-2957-7b0e48b6604c@ipfire.org> Message-ID: <1d0f4b20-a378-b756-bbe8-a379be2feede@ipfire.org> Date: Mon, 07 Oct 2019 18:18:00 +0000 MIME-Version: 1.0 In-Reply-To: <1c9a3727-c220-2d75-2957-7b0e48b6604c@ipfire.org> Content-Language: en-US Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=pmueller smtp.mailfrom=peter.mueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Peter Müller --- src/patches/readline/readline80-001 | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/patches/readline/readline80-001 diff --git a/src/patches/readline/readline80-001 b/src/patches/readline/readline80-001 new file mode 100644 index 000000000..aa72a9dfa --- /dev/null +++ b/src/patches/readline/readline80-001 @@ -0,0 +1,38 @@ + READLINE PATCH REPORT + ===================== + +Readline-Release: 8.0 +Patch-ID: readline80-001 + +Bug-Reported-by: chet.ramey@case.edu +Bug-Reference-ID: +Bug-Reference-URL: + +Bug-Description: + +The history file reading code doesn't close the file descriptor open to +the history file when it encounters a zero-length file. + +Patch (apply with `patch -p0'): + +*** ../readline-8.0-patched/histfile.c 2018-06-11 09:14:52.000000000 -0400 +--- histfile.c 2019-05-16 15:55:57.000000000 -0400 +*************** +*** 306,309 **** +--- 312,316 ---- + { + free (input); ++ close (file); + return 0; /* don't waste time if we don't have to */ + } +*** ../readline-8.0/patchlevel 2013-11-15 08:11:11.000000000 -0500 +--- patchlevel 2014-03-21 08:28:40.000000000 -0400 +*************** +*** 1,3 **** + # Do not edit -- exists only for use by patch + +! 0 +--- 1,3 ---- + # Do not edit -- exists only for use by patch + +! 1