At the end of mansearch(), fchdir() back to where we started from;
authorschwarze <schwarze@openbsd.org>
Tue, 15 Apr 2014 23:47:57 +0000 (23:47 +0000)
committerschwarze <schwarze@openbsd.org>
Tue, 15 Apr 2014 23:47:57 +0000 (23:47 +0000)
commit8a326dda7d2d22777667480a2b004ec0186d4403
tree3cd30567c5defc84bd3c09075a00f8c9a4a04a74
parentfcf9dbb43b578e02c17f5a6cfe65788943da1145
At the end of mansearch(), fchdir() back to where we started from;
this is cleaner and helps to not scatter gmon.out files all over
the place when profiling.
usr.bin/mandoc/mansearch.c