nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

Blame SOURCES/bash-4.4-patch-17.patch

50ece2
From b3a5ec8dd510a68dc850f3f516c0cf9afd87451f Mon Sep 17 00:00:00 2001
50ece2
From: Chet Ramey <chet.ramey@case.edu>
50ece2
Date: Mon, 29 Jan 2018 16:04:37 -0500
50ece2
Subject: [PATCH] Bash-4.4 patch 17
50ece2
50ece2
---
50ece2
 builtins/read.def | 5 +++++
50ece2
 patchlevel.h      | 2 +-
50ece2
 2 files changed, 6 insertions(+), 1 deletion(-)
50ece2
50ece2
diff --git a/builtins/read.def b/builtins/read.def
50ece2
index 33821f3f..803bea35 100644
50ece2
--- a/builtins/read.def
50ece2
+++ b/builtins/read.def
50ece2
@@ -690,6 +690,11 @@ add_char:
50ece2
   input_string[i] = '\0';
50ece2
   CHECK_ALRM;
50ece2
 
50ece2
+#if defined (READLINE)
50ece2
+  if (edit)
50ece2
+    free (rlbuf);
50ece2
+#endif
50ece2
+
50ece2
   if (retval < 0)
50ece2
     {
50ece2
       t_errno = errno;
50ece2
diff --git a/patchlevel.h b/patchlevel.h
50ece2
index 9074f4dd..98e714da 100644
50ece2
--- a/patchlevel.h
50ece2
+++ b/patchlevel.h
50ece2
@@ -25,6 +25,6 @@
50ece2
    regexp `^#define[ 	]*PATCHLEVEL', since that's what support/mkversion.sh
50ece2
    looks for to find the patch level (for the sccs version string). */
50ece2
 
50ece2
-#define PATCHLEVEL 16
50ece2
+#define PATCHLEVEL 17
50ece2
 
50ece2
 #endif /* _PATCHLEVEL_H_ */
50ece2
-- 
50ece2
2.13.6
50ece2