Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: zftp fix for using accounts



Greetings,
  I'm surprised that no one has hit this before, but, using zftp with a
proxy (one that requires an Account be sent) fails (for obvious reasons).
Here are patches against 4.2.6 and 4.3.4.

--
Peter A. Castro <doctor@xxxxxxxxxxxx> or <Peter.Castro@xxxxxxxxxx>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood
--- zsh-4.2.6/Src/Modules/orig/zftp.c   2004-12-07 08:55:11.000000000 -0800
+++ zsh-4.2.6/Src/Modules/zftp.c        2007-05-08 10:07:27.000000000 -0700
@@ -2168,7 +2168,7 @@
            else
                acct = zfgetinfo("Account: ", 0);
            zsfree(ucmd);
-           ucmd = tricat("ACCT ", passwd, "\r\n");
+           ucmd = tricat("ACCT ", acct, "\r\n");
            if (zfsendcmd(ucmd) == 6)
                stopit = 2;
            break;
--- zsh-4.3.4/Src/Modules/orig/zftp.c   2006-05-30 15:35:03.000000000 -0700
+++ zsh-4.3.4/Src/Modules/zftp.c        2007-05-08 10:28:23.000000000 -0700
@@ -2167,7 +2167,7 @@
            else
                acct = zfgetinfo("Account: ", 0);
            zsfree(ucmd);
-           ucmd = tricat("ACCT ", passwd, "\r\n");
+           ucmd = tricat("ACCT ", acct, "\r\n");
            if (zfsendcmd(ucmd) == 6)
                stopit = 2;
            break;


Messages sorted by: Reverse Date, Date, Thread, Author