diff options
author | David Dykstra <dwd@samba.org> | 2003-01-26 03:46:54 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 2003-01-26 03:46:54 +0000 |
commit | 536b84680b4ab1f29fa456b4fa7b5b16eff4af8f (patch) | |
tree | 1036c57d6c38d596ccb9b6c842797c3d4fed3bd5 /params.c | |
parent | 7508b795bf32de44aa550500d56b3935df5c33a7 (diff) | |
download | rsync-536b84680b4ab1f29fa456b4fa7b5b16eff4af8f.tar.gz rsync-536b84680b4ab1f29fa456b4fa7b5b16eff4af8f.tar.bz2 rsync-536b84680b4ab1f29fa456b4fa7b5b16eff4af8f.zip |
Open config files in text mode when O_TEXT is defined. This helps on
Cygwin when the config files are on a filesystem that is mounted in
binary mode. Patch from Ville Herva.
Diffstat (limited to 'params.c')
-rw-r--r-- | params.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -488,7 +488,7 @@ static FILE *OpenConfFile( char *FileName ) return( NULL ); } - OpenedFile = fopen( FileName, "r" ); + OpenedFile = fopen( FileName, "r" O_TEXT_STR ); if( NULL == OpenedFile ) { rprintf(FERROR,"rsync: unable to open configuration file \"%s\": %s\n", |