vol: Windows requires binary fmode for salvager
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 15 Jan 2011 16:04:48 +0000 (11:04 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Sat, 15 Jan 2011 23:00:54 +0000 (15:00 -0800)
commit98f633c60d20834cee0bbc0770a3146b06642a59
tree711da36c1637bb329bc28e2f11cec01173896725
parente8e69d5b2c611df249fd613ed068fc030a0e30d1
vol: Windows requires binary fmode for salvager

In order for salvager to work properly it must read and
write data in binary mode.  On Windows, this is accomplished
by calling _set_fmode(_O_BINARY) to set the default mode for
fopen(), etc.

Change-Id: Ieb00222ceccb6f044453b60d288e2badf713e517
Reviewed-on: http://gerrit.openafs.org/3665
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/vol/salvager.c