Refactor fileprefix() and filecopy() to use warn() instead of err()
authorkrw <krw@openbsd.org>
Thu, 8 Oct 2015 14:50:38 +0000 (14:50 +0000)
committerkrw <krw@openbsd.org>
Thu, 8 Oct 2015 14:50:38 +0000 (14:50 +0000)
commit597864b7cde39709624b6e1975b9d6f8ea4ce559
tree449d4a0763e48da450a204a904d2ac5ad30420da
parent6d14ac70c63e3d083fd67cb36b6d1da9b47998c7
Refactor fileprefix() and filecopy() to use warn() instead of err()
to display error message, and to return error indications (NULL and
-1 respectively).  Use the error indications in write_efisystem()
to unwind in the face of more error conditions. In other cases just
exit(1) to emulation current behaviour.

ok deraadt@
usr.sbin/installboot/i386_installboot.c
usr.sbin/installboot/installboot.c
usr.sbin/installboot/installboot.h
usr.sbin/installboot/landisk_installboot.c
usr.sbin/installboot/sparc64_installboot.c
usr.sbin/installboot/util.c