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