chiark / gitweb /
Fix secret ballot stuff
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 May 2010 16:01:40 +0000 (17:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 May 2010 16:01:40 +0000 (17:01 +0100)
ModerationCommon.pm
sballot/cgi

index 41f865f4a790e8a74ada81eb5b61c5b414d75963..7b9b8810fee6f83433142ed22fa321191232ce4f 100644 (file)
@@ -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 "$! $?";
index b537dcc393681b74bab4aec4df264c937fca6263..b59ec43e53e5292c8ff2f86dbad0bcded5d7b8b0 100755 (executable)
@@ -18,6 +18,8 @@ BEGIN {
 
 use ModerationCommon;
 
+readsettings();
+
 sub fail ($) {
     my ($m)= @_;
     print header(-status=>500), start_html('Secret ballot - error'),