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