From: Michael Meffie Date: Mon, 9 Feb 2015 15:14:41 +0000 (-0500) Subject: dafs: log to stderr when running salvageserver in client mode X-Git-Tag: upstream/1.8.0_pre1^2~195 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4ed8f850b4bcef4db9c0bba0ebffdf3d410190b7;p=packages%2Fo%2Fopenafs.git dafs: log to stderr when running salvageserver in client mode When the -client option is given to the salvageserver, print Log() messages to stderr instead of losing them. Change-Id: I065e8136db9a8cc241639fbe34607db884751b95 Reviewed-on: http://gerrit.openafs.org/11729 Reviewed-by: Perry Ruiter Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- diff --git a/src/vol/salvaged.c b/src/vol/salvaged.c index 0c54639fd..7e4717b19 100644 --- a/src/vol/salvaged.c +++ b/src/vol/salvaged.c @@ -421,6 +421,9 @@ SalvageClient(VolumeId vid, char * pname) SALVSYNC_response_hdr sres; VolumePackageOptions opts; + /* Send Log() messages to stderr in client mode. */ + logFile = stderr; + VOptDefaults(volumeUtility, &opts); if (VInitVolumePackage2(volumeUtility, &opts)) { /* VInitVolumePackage2 can fail on e.g. partition attachment errors,