summaryrefslogtreecommitdiff
path: root/libre/pacman/0002-Revert-close-stdin-before-running-install-scripts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/pacman/0002-Revert-close-stdin-before-running-install-scripts.patch')
-rw-r--r--libre/pacman/0002-Revert-close-stdin-before-running-install-scripts.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/libre/pacman/0002-Revert-close-stdin-before-running-install-scripts.patch b/libre/pacman/0002-Revert-close-stdin-before-running-install-scripts.patch
index 2e8a8f310..62ec5c7f7 100644
--- a/libre/pacman/0002-Revert-close-stdin-before-running-install-scripts.patch
+++ b/libre/pacman/0002-Revert-close-stdin-before-running-install-scripts.patch
@@ -1,4 +1,4 @@
-From 60baf4136355d00ce141b8dc4a90637eb0245245 Mon Sep 17 00:00:00 2001
+From d892998ecea95c8224b128e1797a0e5a970436a8 Mon Sep 17 00:00:00 2001
From: Kevin Mihelich
Date: Sat, 30 Jan 2016 17:19:03 -0700
Subject: [PATCH 2/3] Revert "close stdin before running install scripts"
@@ -16,16 +16,16 @@ Signed-off-by: Kevin Mihelich
1 file changed, 1 deletion(-)
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
-index 1e554632..41cca4a7 100644
+index 102a879a..c9fdd4af 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
-@@ -612,7 +612,6 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char *cmd, char *const argv[],
+@@ -608,7 +608,6 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char *cmd, char *const argv[],
if(pid == 0) {
/* this code runs for the child only (the actual chroot/exec) */
- close(0);
close(1);
close(2);
- while(dup2(child2parent_pipefd[1], 1) == -1 && errno == EINTR);
+ while(dup2(child2parent_pipefd[HEAD], 1) == -1 && errno == EINTR);
--
-2.13.1
+2.17.0