From: Ian Jackson Date: Tue, 4 May 2010 16:01:40 +0000 (+0100) Subject: Fix secret ballot stuff X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-mtm.git;a=commitdiff_plain;h=75155d1912f5bbb98b812258d6da526fd52ab412 Fix secret ballot stuff --- 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'),