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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 01 Dec 2002 12:11:30 -0800


Bugs item #646592, was opened at 2002-12-01 20:11
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: Open
Resolution: None
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.


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

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