]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pax(1): Honour the restrict in sigaction().
authorpfg <pfg@FreeBSD.org>
Sat, 27 Jan 2018 18:24:13 +0000 (18:24 +0000)
committerpfg <pfg@FreeBSD.org>
Sat, 27 Jan 2018 18:24:13 +0000 (18:24 +0000)
commitda6855ae9ab64b27eae7ce4741678ae32bd25727
tree2c039a139857b7b0e386edb724d601c17eaba92c
parent61e33053bec0b533d5bd75eda5edc79b1bc45f5d
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.

Obtained from: OpenBSD (through DragonFly git eca362d0f9bd086cc56d6b5bc4f03f09e040b9db)
bin/pax/pax.c