2021-07-15 12:49:20 +00:00
|
|
|
From 2cf9026a6b56ffa56d54554538a17c9162090045 Mon Sep 17 00:00:00 2001
|
2016-02-01 13:19:58 +00:00
|
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
Date: Sat, 30 Jan 2016 17:19:03 -0700
|
2019-10-23 12:52:21 +00:00
|
|
|
Subject: [PATCH 2/3] Revert "close stdin before running install scripts"
|
2016-02-01 13:19:58 +00:00
|
|
|
|
|
|
|
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 <kevin@archlinuxarm.org>
|
|
|
|
---
|
|
|
|
lib/libalpm/util.c | 1 -
|
|
|
|
1 file changed, 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
|
2021-07-15 12:49:20 +00:00
|
|
|
index 299d287e..82e01c5a 100644
|
2016-02-01 13:19:58 +00:00
|
|
|
--- a/lib/libalpm/util.c
|
|
|
|
+++ b/lib/libalpm/util.c
|
2021-07-15 12:49:20 +00:00
|
|
|
@@ -635,7 +635,6 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char *cmd, char *const argv[],
|
2016-02-01 13:19:58 +00:00
|
|
|
|
|
|
|
if(pid == 0) {
|
|
|
|
/* this code runs for the child only (the actual chroot/exec) */
|
|
|
|
- close(0);
|
|
|
|
close(1);
|
|
|
|
close(2);
|
2018-05-29 00:53:59 +00:00
|
|
|
while(dup2(child2parent_pipefd[HEAD], 1) == -1 && errno == EINTR);
|
2016-02-01 13:19:58 +00:00
|
|
|
--
|
2021-07-15 12:49:20 +00:00
|
|
|
2.30.1
|
2016-02-01 13:19:58 +00:00
|
|
|
|