Safety check must actually exit
authorPaul Crowley <paul@lshift.net>
Sat, 07 Mar 2009 09:48:10 +0000
changeset 85 80fa761c7f5d
parent 84 964b04126d01
child 86 78777f509303
Safety check must actually exit
src/mercurialserver/refreshauth.py
--- 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"