pax(1): Honour the restrict in sigaction().
commiteca362d0f9bd086cc56d6b5bc4f03f09e040b9db
authorzrj <rimvydas.jasinskas@gmail.com>
Wed, 24 Jan 2018 14:07:16 +0000 (24 16:07 +0200)
committerzrj <zrj@dragonflybsd.org>
Wed, 24 Jan 2018 17:40:42 +0000 (24 19:40 +0200)
tree838e05d1409ea32379dc60dbd89792044bff7430
parenteb9625b533c994f3f2e0fe5aca2bf38be4757b40
pax(1): Honour the restrict in sigaction().

Use a setup_sig() helper and make it fail when either of sigaction fails.

While there, do not leak fds for "." + minor cleanup.

Taken-from: OpenBSD
bin/pax/pax.c