Reopen the correct filename when -logfile is given 23/11723/16
authorMichael Meffie <mmeffie@sinenomine.net>
Thu, 5 Feb 2015 21:59:52 +0000 (16:59 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Mon, 25 Apr 2016 04:08:59 +0000 (00:08 -0400)
commita8c9997e93ba0fd36b0b71601157e4a0e9f3b9f5
tree483cdd6c02e6b11973e8cdf028a929e60d3545ab
parentd92ef173bc6ab7dd85bd2cbadbb2a089a9d4bacf
Reopen the correct filename when -logfile is given

The name of the log file passed to ReOpenLog() may not match the name
given in the initial OpenLog() call. This can happen when the -logfile
option is given to the fileserver or volume server.

Since the name given to ReOpenLog() must match the original name, change
ReOpenLog() to use the name previously given to OpenLog() and update all
callers.

Change-Id: Ie6fa4cb6e3c03f853efe0207bbec5d8412c6fe59
Reviewed-on: https://gerrit.openafs.org/11723
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/kauth/krb_udp.c
src/util/afsutil.h
src/util/afsutil_prototypes.h
src/util/serverLog.c
src/viced/viced.c
src/volser/volmain.c