diff options
author | Miles Bader <miles@gnu.org> | 1997-05-14 19:54:51 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-05-14 19:54:51 +0000 |
commit | a87f8ca95d882511bcc7be8dbea626524dbb628f (patch) | |
tree | 6fdc6b0a0037f270a7e072cfc490c1d2ceb39edf /libftpconn/open.c | |
parent | 132486fb18087d30780ca1c2b41660c235663715 (diff) |
(ftp_conn_login): Correct defaulting of username.
Diffstat (limited to 'libftpconn/open.c')
-rw-r--r-- | libftpconn/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libftpconn/open.c b/libftpconn/open.c index 1a0dfec7..baa6bacb 100644 --- a/libftpconn/open.c +++ b/libftpconn/open.c @@ -64,9 +64,9 @@ ftp_conn_login (struct ftp_conn *conn) else { pass = getenv ("USER"); - if (pass) + if (! pass) pass = getenv ("LOGNAME"); - if (pass) + if (! pass) { struct passwd *pe = getpwuid (getuid ()); pass = pe ? pe->pw_name : "?"; |