]> git.ipfire.org Git - thirdparty/shadow.git/commit
copy_tree: do not block on fifos
authorSamanta Navarro <ferivoz@riseup.net>
Sun, 4 Sep 2022 11:58:03 +0000 (11:58 +0000)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 9 Sep 2022 13:19:12 +0000 (15:19 +0200)
commit10cd68e0f04b48363eb32d2c6e168b358fb27810
treeb6afe58905dccf6875003abeb540cf2c4a56bb82
parentf3bdb28e57e5e38c1e89347976c7d61a181eec32
copy_tree: do not block on fifos

Fixes regression introduced in faeab50e710131816b261de66141524898c2c487.

If a directory contains fifos, then openat blocks until the other side
of the fifo is connected as well.

This means that users can prevent "usermod -m" from completing if their
home directories contain at least one fifo.
libmisc/copydir.c