From 1ed87e3fcec5362d689ac45cb68a719f106a05fd Mon Sep 17 00:00:00 2001 From: Jonas Haag <jonas@lophus.org> Date: Wed, 24 Jun 2015 15:45:00 +0200 Subject: [PATCH] Disallow --htdigest without --smarthttp to avoid misuse --- bin/klaus | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/klaus b/bin/klaus index 77136c3..374cbd4 100755 --- a/bin/klaus +++ b/bin/klaus @@ -52,6 +52,10 @@ def make_parser(): def main(): args = make_parser().parse_args() + if args.htdigest and not args.smarthttp: + print >> sys.stderr, "--htdigest option has no effect without --smarthttp enabled" + return 1 + if not args.repos: print >> sys.stderr, "WARNING: No repositories supplied -- syntax is 'klaus dir1 dir2...'." @@ -85,4 +89,4 @@ def _open_browser(args): if __name__ == '__main__': - main() + exit(main()) -- GitLab