0002-Revert-close-stdin-before-running-install-scripts.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From d892998ecea95c8224b128e1797a0e5a970436a8 Mon Sep 17 00:00:00 2001
  2. From: Kevin Mihelich <kevin@archlinuxarm.org>
  3. Date: Sat, 30 Jan 2016 17:19:03 -0700
  4. Subject: [PATCH 2/3] Revert "close stdin before running install scripts"
  5. This reverts commit e374e6829cea3512f0b4a4069c5a6168f0f8d8a0.
  6. Arch Linux ARM packages have use cases for this feature, such as
  7. prompting the user to flash a new kernel to a bare partition. Removing
  8. this feature will undoubtedly cause more problems than it intends to
  9. solve.
  10. Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
  11. ---
  12. lib/libalpm/util.c | 1 -
  13. 1 file changed, 1 deletion(-)
  14. diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
  15. index 102a879a..c9fdd4af 100644
  16. --- a/lib/libalpm/util.c
  17. +++ b/lib/libalpm/util.c
  18. @@ -608,7 +608,6 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char *cmd, char *const argv[],
  19. if(pid == 0) {
  20. /* this code runs for the child only (the actual chroot/exec) */
  21. - close(0);
  22. close(1);
  23. close(2);
  24. while(dup2(child2parent_pipefd[HEAD], 1) == -1 && errno == EINTR);
  25. --
  26. 2.17.0