From 802899aac022ab537159f3cd4435d072b5edc4be Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 17 Jan 2011 12:35:46 -0600 Subject: [PATCH] vol: Windows requires binary fmode for salvaged Same as 98f633c60d20834cee0bbc0770a3146b06642a59, but for the salvageserver. Change-Id: I961e31fd6a2a6e08e3bd4381793195bb1e388e7c Reviewed-on: http://gerrit.openafs.org/3676 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/vol/salvaged.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vol/salvaged.c b/src/vol/salvaged.c index 080727de0e..b765f42a7c 100644 --- a/src/vol/salvaged.c +++ b/src/vol/salvaged.c @@ -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