1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-02-28 17:31:52 -05:00
Wolfgang Bumiller 20127e732c Close file descirptor before fork
FreeBSD chroot(2) fails with EPERM when a directory file descriptor is open
with either `kern.chroot_allow_open_directories` being 0, or when the process
already is inside a chroot.  This is exposed in alpm_run_chroot that uses
opendir() to open a file descriptor to the current directory before doing
the forking and chrooting.  Since the file descriptor is not used in the
forked process, we close it.

Fixes FS#36161.

Signed-off-by: Allan McRae <allan@archlinux.org>
2013-12-15 20:09:37 +10:00
..
2012-04-25 20:02:36 -04:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-06-03 13:33:47 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-01-28 23:38:46 +10:00
2013-02-07 10:48:11 +10:00
2013-10-31 16:20:02 +10:00
2013-10-31 16:20:02 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2011-07-05 22:36:40 -05:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-01-03 12:03:09 +10:00
2013-12-15 20:09:37 +10:00
2013-07-05 14:32:23 +10:00