From 75155d1912f5bbb98b812258d6da526fd52ab412 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 4 May 2010 17:01:40 +0100 Subject: [PATCH 1/1] Fix secret ballot stuff --- ModerationCommon.pm | 2 +- sballot/cgi | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ModerationCommon.pm b/ModerationCommon.pm index 41f865f..7b9b881 100644 --- a/ModerationCommon.pm +++ b/ModerationCommon.pm @@ -26,7 +26,7 @@ sub hash ($) { } sub sendmail_start () { - open ::P, "|sendmail -odb -oee -oi -t" or die $!; + open ::P, "|/usr/sbin/sendmail -odb -oee -oi -t" or die $!; } sub sendmail_finish () { $?=0; $!=0; close ::P or warn "$! $?"; diff --git a/sballot/cgi b/sballot/cgi index b537dcc..b59ec43 100755 --- a/sballot/cgi +++ b/sballot/cgi @@ -18,6 +18,8 @@ BEGIN { use ModerationCommon; +readsettings(); + sub fail ($) { my ($m)= @_; print header(-status=>500), start_html('Secret ballot - error'), -- 2.30.2