summaryrefslogtreecommitdiff
path: root/libre/pacman/0002-Revert-close-stdin-before-running-install-scripts.patch
blob: 2e8a8f310da63878b62cdf608bd2703056a9df2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 60baf4136355d00ce141b8dc4a90637eb0245245 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"

This reverts commit e374e6829cea3512f0b4a4069c5a6168f0f8d8a0.

Arch Linux ARM packages have use cases for this feature, such as
prompting the user to flash a new kernel to a bare partition. Removing
this feature will undoubtedly cause more problems than it intends to
solve.

Signed-off-by: Kevin Mihelich 
---
 lib/libalpm/util.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 1e554632..41cca4a7 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[],
 
 	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);
-- 
2.13.1