Hi, there seems to be a bug in the ftp program. The "account VALUE" entry in netrc files is not actually used. This is a problem for certain types of firewalls which expect USER remote_user firewall_user PASS remote_passw ACCT firewall_passw Currently, the ftp program does not use the "account" field in the login procedure but the user is always prompted for the "Account:" password. This disables batch jobs using ftp. The fix is attached. Best regards Henrik Seidel diff -Naur netkit-ftp-0.16.orig/ftp/ftp.c netkit-ftp-0.16/ftp/ftp.c --- netkit-ftp-0.16.orig/ftp/ftp.c Mon Dec 13 20:33:20 1999 +++ netkit-ftp-0.16/ftp/ftp.c Fri Sep 8 10:55:54 2000 @@ -253,8 +253,10 @@ } if (n == CONTINUE) { aflag++; - /* fflush(stdout); */ - zacct = getpass("Account:"); + if (zacct == NULL) { + /* fflush(stdout); */ + zacct = getpass("Account:"); + } n = command("ACCT %s", zacct); } if (n != COMPLETE) {
Created attachment 3318 [details] This is the fix for the ACCT-password/netrc bug
Thanks, fixed in 0.17-7