nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone
3fb13f
From 1aef9c7b55dcef4af239caf93e01419e1c8e04ad Mon Sep 17 00:00:00 2001
3fb13f
From: Chet Ramey <chet.ramey@case.edu>
3fb13f
Date: Mon, 29 Jan 2018 16:03:33 -0500
3fb13f
Subject: [PATCH] Bash-4.4 patch 13
3fb13f
3fb13f
---
3fb13f
 patchlevel.h | 2 +-
3fb13f
 redir.c      | 2 ++
3fb13f
 2 files changed, 3 insertions(+), 1 deletion(-)
3fb13f
3fb13f
diff --git a/patchlevel.h b/patchlevel.h
3fb13f
index 93dbe0db..779671cd 100644
3fb13f
--- a/patchlevel.h
3fb13f
+++ b/patchlevel.h
3fb13f
@@ -25,6 +25,6 @@
3fb13f
    regexp `^#define[ 	]*PATCHLEVEL', since that's what support/mkversion.sh
3fb13f
    looks for to find the patch level (for the sccs version string). */
3fb13f
 
3fb13f
-#define PATCHLEVEL 12
3fb13f
+#define PATCHLEVEL 13
3fb13f
 
3fb13f
 #endif /* _PATCHLEVEL_H_ */
3fb13f
diff --git a/redir.c b/redir.c
3fb13f
index 25488eaf..1858b0b0 100644
3fb13f
--- a/redir.c
3fb13f
+++ b/redir.c
3fb13f
@@ -469,6 +469,8 @@ here_document_to_fd (redirectee, ri)
3fb13f
       return (fd);
3fb13f
     }
3fb13f
 
3fb13f
+  SET_CLOSE_ON_EXEC (fd);
3fb13f
+
3fb13f
   errno = r = 0;		/* XXX */
3fb13f
   /* write_here_document returns 0 on success, errno on failure. */
3fb13f
   if (redirectee->word)
3fb13f
-- 
3fb13f
2.13.6
3fb13f