src/mercurialserver/refreshauth.py
changeset 85 80fa761c7f5d
parent 79 3a58a95fae2f
child 86 78777f509303
--- a/src/mercurialserver/refreshauth.py	Sat Mar 07 09:39:36 2009 +0000
+++ b/src/mercurialserver/refreshauth.py	Sat Mar 07 09:48:10 2009 +0000
@@ -17,6 +17,7 @@
     if pentry.pw_name != "hg":
         # FIXME: re-execute
         print >>sys.stderr, "Must be run as the 'hg' user"
+        sys.exit(-1)
 
     akeyfile = pentry.pw_dir + "/.ssh/authorized_keys"
     wrappercommand = paths.getExePath() + "/hg-ssh"