summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2016-02-22 03:46:38 +0100
committerAllan McRae <allan@archlinux.org>2016-02-23 03:33:04 +0100
commit1d6583a58da0904fb7feafd4a666391087955a7b (patch)
treeecb5f220e7d3851512eba9ac2f9bad79b8ea3038 /test
parentce1f453b74c8fd0966e1d11d3deeb1a777055fc5 (diff)
downloadpacman-1d6583a58da0904fb7feafd4a666391087955a7b.tar.gz
pacman-1d6583a58da0904fb7feafd4a666391087955a7b.tar.xz
alpm_run_chroot: always connect parent2child pipe
Commit e374e6829cea3512f0b4a4069c5a6168f0f8d8a0 closed stdin before running scripts/hooks. This left the exec'd process with no file descriptor 0. If the process subsequently opened a file it would be assigned fd 0, and could potentially be confused for stdin. Connecting and immediately closing the parent2child pipe ensures that the child has an fd 0 and that it is empty. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions