Add pledge support to cmp(1).
authordoug <doug@openbsd.org>
Sat, 10 Oct 2015 05:35:22 +0000 (05:35 +0000)
committerdoug <doug@openbsd.org>
Sat, 10 Oct 2015 05:35:22 +0000 (05:35 +0000)
commita2428f0ba33370268c7a1104d4261fc4395efa18
treecba54a7a963f0e8b56c62314beb156d9797536db
parentd4c1cf2290b334cfd80f955f9b0574bcb200be84
Add pledge support to cmp(1).

This is a simple case of using "stdio rpath" until all files are opened and
then dropping down to "stdio" since it includes "rw" on open fds.

ok deraadt@
usr.bin/cmp/cmp.c