Skip to content

Commit fe62a9b

Browse files
authored
Merge pull request #37 from t-brown/netrc_bugfix
Fixing netrc usage.
2 parents a5d90c4 + 4d0e94a commit fe62a9b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ build-aux/*
55
config.log
66
config.status
77
configure
8+
configure~
89
po/POTFILES
910
po/remove-potcdate.sed
11+
po/Makevars.template
1012
Makefile
1113
Makefile.in
1214
src/.deps/
1315
src/config.h
1416
src/config.h.in
17+
src/config.h.in~
1518
src/stamp-h1
1619
src/*.o
1720
VERSION

src/rc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ read_rc(const char *file)
186186
abs_file = NULL;
187187
}
188188

189-
if (options.username == NULL) {
189+
if (options.username == NULL && options.netrc == 0) {
190190
options.username = strdup(getenv("USER"));
191191
}
192192

0 commit comments

Comments
 (0)