diff options
author | Wayne Davison <wayned@samba.org> | 2003-01-26 19:37:54 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-01-26 19:37:54 +0000 |
commit | 73ff720972770e097bf9c42100f7bd990bc19186 (patch) | |
tree | b997f8f0a0bd608f8e3fe4d02e8167fc7204dd3c /authenticate.c | |
parent | c561e1378d4f73dd7beda897b6f6d98153fd4f1e (diff) | |
download | rsync-73ff720972770e097bf9c42100f7bd990bc19186.tar.gz |
File I/O already handles '\r', so we can remove the O_TEXT flags.
Diffstat (limited to 'authenticate.c')
-rw-r--r-- | authenticate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/authenticate.c b/authenticate.c index a1c35755..7d44da6e 100644 --- a/authenticate.c +++ b/authenticate.c @@ -82,7 +82,7 @@ static int get_secret(int module, char *user, char *secret, int len) if (!fname || !*fname) return 0; - fd = open(fname,O_RDONLY | O_TEXT); + fd = open(fname,O_RDONLY); if (fd == -1) return 0; if (do_stat(fname, &st) == -1) { @@ -144,7 +144,7 @@ static char *getpassf(char *filename) if (!filename) return NULL; - if ( (fd=open(filename,O_RDONLY | O_TEXT)) == -1) { + if ( (fd=open(filename,O_RDONLY)) == -1) { rsyserr(FERROR, errno, "could not open password file \"%s\"",filename); if (envpw) rprintf(FERROR,"falling back to RSYNC_PASSWORD environment variable.\n"); return NULL; |