id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3869	ftp: fail to retrieve password from .netrc when user is in URL	cri	andrew_b	"
I have a proper entry in `~/.netrc` for USERNAME, PASSWORD and HOST.

If I try to access the URL ftp://HOST/PATH, mc correctly retrieves USERNAME and PASSWORD from `.netrc` and I can log into the FTP host.

If I try to access the URL ftp://USERNAME@HOST/PATH, mc displays a popup window, asking for the password. Shouldn't it retrieve the password from `.netrc`?

I had a look at https://midnight-commander.org/browser/src/vfs/ftpfs/ftpfs.c#L371

shouldn't it be 
{{{
...`&& path_element->password == NULL`
}}}
instead of
{{{
...`&& path_element->password != NULL`
}}}
?

Or am I missing something?"	defect	closed	major	4.8.20	mc-vfs	master	fixed					merged	committed-master
