[pass] Fixes to keepassx2pass.py script to handle empty passwords and entry names containing slash ('/') characters (take 2)

Von Welch von at vwelch.com
Sat Feb 23 04:29:18 CET 2013


Fix for my previous patch for keepassx2pass.py, carriage return should
have been '\n' not '\N'

Von

---
 contrib/keepassx2pass.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/keepassx2pass.py b/contrib/keepassx2pass.py
index 6cf2268..1804e33 100755
--- a/contrib/keepassx2pass.py
+++ b/contrib/keepassx2pass.py
@@ -18,7 +18,7 @@ def password_data(element):
     """ Return password data and additional info if available from
     password entry element. """
     passwd = element.find('password').text
-    ret = passwd + "\N" if passwd else "\N"
+    ret = passwd + "\n" if passwd else "\n"
     for field in ['username', 'url', 'comment']:
         fel = element.find(field)
         if fel.text is not None:
--
1.7.0



More information about the Password-Store mailing list