bozo: use the full path when renaming BosLog to BosLog.old
authorMichael Meffie <mmeffie@sinenomine.net>
Wed, 21 Jan 2015 19:31:51 +0000 (14:31 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 28 Aug 2015 01:34:20 +0000 (21:34 -0400)
commit05e7c2f2fb60805e21f6235d7666b9c6f943a685
treeb14e6f40b1e96c89c0612d17b3fd16d2a01a4ad0
parentdf05a15ce3cb1c730bf87613711c38fa25be349f
bozo: use the full path when renaming BosLog to BosLog.old

Use the full path when renaming the BosLog file to BosLog.old and when
checking whether the BosLog file can be opened, otherwise the rename
will fail (and go unnoticed), and the initial BosLog check opens a
handle to a file in the wrong directory.

Create the server directories, including the logs directory, before
forking and log file initialization.

Change-Id: I3733d64335f348190572f6278086b634641f2754
Reviewed-on: http://gerrit.openafs.org/11685
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams <3chas3@gmail.com>
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/bozo/bosserver.c