[Python-bugs-list] [ python-Bugs-646592 ] netrc & special chars in passwords

SourceForge.net noreply@sourceforge.net
Wed, 23 Apr 2003 13:14:49 -0700


Bugs item #646592, was opened at 2002-12-01 14:11
Message generated for change (Settings changed) made by montanaro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=646592&group_id=5470

Category: Python Library
Group: Python 2.2.2
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: netrc & special chars in passwords

Initial Comment:
[ from http://bugs.debian.org/168426 ]

checked with 2.2.2 and CVS HEAD

 $ cat  ~/.netrc
machine localhost login ftp password my[pass

>>> import netrc
>>> n=netrc.netrc()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/netrc.py", line 80, in __init__
    file, lexer.lineno)
netrc.NetrcParseError: bad follower token '['
(/home/doko/.netrc, line 1)

$ cat  ~/.netrc
machine localhost login ftp password "my[pass"

is a workaround. Although on the netrc(5) "BSD File
Formats Manual" page, I cannot find anything that
enforces the quotes.


----------------------------------------------------------------------

>Comment By: Skip Montanaro (montanaro)
Date: 2003-04-23 15:14

Message:
Logged In: YES 
user_id=44345

Closing - duplicate of 557704 which was just closed.  The fix
there was backported to the 2.2 maintenance branch, so 2.2.3
should have the fix.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=646592&group_id=5470