zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: zftp fix for using accounts
@ 2007-05-09 20:40 Peter A. Castro
  2007-05-09 20:59 ` Peter A. Castro
  0 siblings, 1 reply; 2+ messages in thread
From: Peter A. Castro @ 2007-05-09 20:40 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: TEXT/PLAIN, Size: 323 bytes --]

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@fruitbat.org> or <Peter.Castro@oracle.com>
 	"Cats are just autistic Dogs" -- Dr. Tony Attwood

[-- Attachment #2: zsh-4.2.6.patchforzftp --]
[-- Type: TEXT/PLAIN, Size: 465 bytes --]

--- 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;

[-- Attachment #3: zsh-4.3.4.patchforzftp --]
[-- Type: TEXT/PLAIN, Size: 465 bytes --]

--- 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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: zftp fix for using accounts
  2007-05-09 20:40 PATCH: zftp fix for using accounts Peter A. Castro
@ 2007-05-09 20:59 ` Peter A. Castro
  0 siblings, 0 replies; 2+ messages in thread
From: Peter A. Castro @ 2007-05-09 20:59 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: TEXT/PLAIN, Size: 439 bytes --]

On Wed, 9 May 2007, Peter A. Castro wrote:

> 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.

Oops!  Messed up the patch!  Sorry!  Here's some better ones :-)

-- 
Peter A. Castro <doctor@fruitbat.org> or <Peter.Castro@oracle.com>
 	"Cats are just autistic Dogs" -- Dr. Tony Attwood

[-- Attachment #2: zsh-4.2.6.patchforzftp --]
[-- Type: TEXT/PLAIN, Size: 397 bytes --]

--- 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;

[-- Attachment #3: zsh-4.3.4.patchforzftp --]
[-- Type: TEXT/PLAIN, Size: 397 bytes --]

--- 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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-09 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-09 20:40 PATCH: zftp fix for using accounts Peter A. Castro
2007-05-09 20:59 ` Peter A. Castro

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).