vol: Windows requires binary fmode for salvaged

Same as 98f633c60d, but for the
salvageserver.

Change-Id: I961e31fd6a2a6e08e3bd4381793195bb1e388e7c
Reviewed-on: http://gerrit.openafs.org/3676
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Andrew Deason 2011-01-17 12:35:46 -06:00 committed by Jeffrey Altman
parent 038264b4d6
commit 802899aac0

View File

@ -338,6 +338,9 @@ main(int argc, char **argv)
exit(2);
}
#ifdef AFS_NT40_ENV
/* Default to binary mode for fopen() */
_set_fmode(_O_BINARY);
main_thread = pthread_self();
if (spawnDatap && spawnDataLen) {
/* This is a child per partition salvager. Don't setup log or