Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c561e13
)
File I/O already handles '\r', so we can remove the O_TEXT flags.
author
Wayne Davison
<wayned@samba.org>
Sun, 26 Jan 2003 19:37:54 +0000
(19:37 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 26 Jan 2003 19:37:54 +0000
(19:37 +0000)
authenticate.c
patch
|
blob
|
blame
|
history
diff --git
a/authenticate.c
b/authenticate.c
index
a1c3575
..
7d44da6
100644
(file)
--- 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;
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) {
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 (!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;
rsyserr(FERROR, errno, "could not open password file \"%s\"",filename);
if (envpw) rprintf(FERROR,"falling back to RSYNC_PASSWORD environment variable.\n");
return NULL;