Show More
@@ -72,9 +72,14 b' def auth_getuserpasswd(self, getkey, par' | |||
|
72 | 72 | l = os.read(fd, ERRMAX).split() |
|
73 | 73 | if l[0] == 'ok': |
|
74 | 74 | os.write(fd, 'read') |
|
75 |
|
|
|
76 |
if |
|
|
77 |
|
|
|
75 | status, user, passwd = os.read(fd, ERRMAX).split(None, 2) | |
|
76 | if status == 'ok': | |
|
77 | if passwd.startswith("'"): | |
|
78 | if passwd.endswith("'"): | |
|
79 | passwd = passwd[1:-1].replace("''", "'") | |
|
80 | else: | |
|
81 | raise util.Abort(_('malformed password string')) | |
|
82 | return (user, passwd) | |
|
78 | 83 | except (OSError, IOError): |
|
79 | 84 | raise util.Abort(_('factotum not responding')) |
|
80 | 85 | finally: |
General Comments 0
You need to be logged in to leave comments.
Login now