equal
deleted
inserted
replaced
17 if pentry.pw_name != "hg": |
17 if pentry.pw_name != "hg": |
18 # FIXME: re-execute |
18 # FIXME: re-execute |
19 print >>sys.stderr, "Must be run as the 'hg' user" |
19 print >>sys.stderr, "Must be run as the 'hg' user" |
20 |
20 |
21 akeyfile = pentry.pw_dir + "/.ssh/authorized_keys" |
21 akeyfile = pentry.pw_dir + "/.ssh/authorized_keys" |
22 wrappercommand = paths.getEtcPath() + "/hg-ssh-wrapper" |
22 wrappercommand = paths.getExePath() + "/hg-ssh" |
23 keydirs = [paths.getEtcPath() + "/keys", pentry.pw_dir + "/repos/hgadmin/keys"] |
23 keydirs = [paths.getEtcPath() + "/keys", pentry.pw_dir + "/repos/hgadmin/keys"] |
24 prefix='no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command=' |
24 prefix='no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command=' |
25 |
25 |
26 if os.path.exists(akeyfile): |
26 if os.path.exists(akeyfile): |
27 f = open(akeyfile) |
27 f = open(akeyfile) |