emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#10874: closed (ange-ftp ignores comments in .netrc


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#10874: closed (ange-ftp ignores comments in .netrc)
Date: Fri, 24 Feb 2012 08:23:02 +0000

Your message dated Fri, 24 Feb 2012 09:19:59 +0100
with message-id <address@hidden>
and subject line Re: bug#10874: ange-ftp ignores comments in .netrc
has caused the debbugs.gnu.org bug report #10874,
regarding ange-ftp ignores comments in .netrc
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
10874: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10874
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: ange-ftp ignores comments in .netrc Date: Thu, 23 Feb 2012 15:09:49 +0100
Hi!

Working with different logins for the same machine I came
across what seems to be a bug in ange-ftp. I'm using a
standard .netrc file to collect the various accounts on
different machines. In this case I have access with
administrative rights and an account as a normal user on the
same server:

machine test1.example.org login user password abcde
# machine test1.example.org login admin password 12345

With the dired command (C-x d) I get a listing on the remote
machine, but although the second line is commented out,
ange-ftp transmits "admin" as the login name and
"12345" as the password.

Putting the first line second gets me logged in with the
normal user account. The standard ftp command on the command
line behaves correctly.

In order to ignore any init-files I started GNU Emacs 23.3.1
(x86_64-pc-linux-gnu, GTK+ Version 2.24.5) on kubuntu 11.10
on the commandline: emacs -Q

Regards,

                    Patrick

-- 
Nota bene vernichten Sie bitte diese Zeilen.



--- End Message ---
--- Begin Message --- Subject: Re: bug#10874: ange-ftp ignores comments in .netrc Date: Fri, 24 Feb 2012 09:19:59 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)
version: 24.1
thanks

Patrick Goltzsch <address@hidden> writes:

> Hi!

Hi,

> Working with different logins for the same machine I came
> across what seems to be a bug in ange-ftp.

I've fixed this in the trunk, will be available with Emacs 24.1. You
could verify it with the following patch:

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/emacs/lisp/net/ange-ftp.el.~106977~       2012-02-24 
09:17:15.649762132 +0100
--- /home/albinus/src/emacs/lisp/net/ange-ftp.el        2012-02-24 
08:34:40.253090611 +0100
***************
*** 1390,1395 ****
--- 1390,1398 ----
                (run-hooks 'find-file-hook)
                (setq buffer-file-name nil)
                (goto-char (point-min))
+               (while (search-forward-regexp "^[ \t]*#.*$" nil t)
+                 (replace-match ""))
+               (goto-char (point-min))
                (skip-chars-forward " \t\r\n")
                (while (not (eobp))
                  (ange-ftp-parse-netrc-group))
--8<---------------cut here---------------end--------------->8---

> Regards,
>
>                   Patrick

Best regards, Michael.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]