refresh-auth
changeset 6 505d4789f91c
parent 4 dcd195f3e52c
child 11 f3c73c9fc0ff
equal deleted inserted replaced
5:6fc5eab8ae58 6:505d4789f91c
    26         if goodpathre.match(ffn) is None:
    26         if goodpathre.match(ffn) is None:
    27             # ignore any path that contains dodgy characters
    27             # ignore any path that contains dodgy characters
    28             continue
    28             continue
    29         keyname = ffn[5:]
    29         keyname = ffn[5:]
    30         prefix=('command="%s",no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding'
    30         prefix=('command="%s",no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding'
    31             % ('%s %s' % (wrappercommand, keyname))
    31             % ('%s %s' % (wrappercommand, keyname)))
    32         kf = open(ffn)
    32         kf = open(ffn)
    33         try:
    33         try:
    34             for l in kf:
    34             for l in kf:
    35                 akeys.write("%s %s\n" % (prefix, l.strip()))
    35                 akeys.write("%s %s\n" % (prefix, l.strip()))
    36         finally:
    36         finally: