This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: netrc & special chars in passwords
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: doko, skip.montanaro
Priority: normal Keywords:

Created on 2002-12-01 20:11 by doko, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg13515 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2002-12-01 20:11
[ 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.
msg13516 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-04-23 20:14
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.
History
Date User Action Args
2022-04-10 16:05:57adminsetgithub: 37561
2002-12-01 20:11:30dokocreate