Use openat() and unlinkat() instead of chdir()ing to the recovery dir.
authormillert <millert@openbsd.org>
Mon, 12 Jun 2017 18:38:57 +0000 (18:38 +0000)
committermillert <millert@openbsd.org>
Mon, 12 Jun 2017 18:38:57 +0000 (18:38 +0000)
commit96b44c9d501bd7e1d0af664dbce7c0a06df300d8
treea8fd0cef1ed6835c9aa7f2e97633fae07065ccd8
parenta9760798a08888acd74b2d6de599f34fe78a6deb
Use openat() and unlinkat() instead of chdir()ing to the recovery dir.
Since we use flock() and not fcntl() locking we can open the recovery
file read-only.  OK martijn@
usr.bin/vi/common/recover.c