zsh-workers
 help / color / mirror / code / Atom feed
From: "Peter A. Castro" <doctor@fruitbat.org>
To: zsh-workers@sunsite.dk
Subject: PATCH: zftp fix for using accounts
Date: Wed, 9 May 2007 13:40:46 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0705091337240.3491@gremlin.fruitbat.org> (raw)

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

             reply	other threads:[~2007-05-09 20:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09 20:40 Peter A. Castro [this message]
2007-05-09 20:59 ` Peter A. Castro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0705091337240.3491@gremlin.fruitbat.org \
    --to=doctor@fruitbat.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).