summaryrefslogtreecommitdiff
path: root/params.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2003-01-26 03:46:54 +0000
committerDavid Dykstra <dwd@samba.org>2003-01-26 03:46:54 +0000
commit536b84680b4ab1f29fa456b4fa7b5b16eff4af8f (patch)
tree1036c57d6c38d596ccb9b6c842797c3d4fed3bd5 /params.c
parent7508b795bf32de44aa550500d56b3935df5c33a7 (diff)
downloadrsync-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/params.c b/params.c
index 81638118..b224ec9d 100644
--- a/params.c
+++ b/params.c
@@ -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",