2004-03-04 01:34:09 -05:00
|
|
|
$OpenBSD: patch-cgi-bin_openwebmail_openwebmail-folder_pl,v 1.4 2004/03/04 06:34:11 kevlo Exp $
|
|
|
|
--- cgi-bin/openwebmail/openwebmail-folder.pl.orig Sat Jan 3 04:16:50 2004
|
|
|
|
+++ cgi-bin/openwebmail/openwebmail-folder.pl Thu Mar 4 11:38:25 2004
|
2003-01-30 02:57:22 -05:00
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/suidperl -T
|
|
|
|
+#!/usr/bin/perl -T
|
|
|
|
#
|
|
|
|
# openwebmail-folder.pl - mail folder management program
|
|
|
|
#
|
2003-11-03 01:15:07 -05:00
|
|
|
@@ -5,10 +5,10 @@
|
2003-04-14 04:26:11 -04:00
|
|
|
|
|
|
|
use vars qw($SCRIPT_DIR);
|
2004-03-04 01:34:09 -05:00
|
|
|
if ( $0 =~ m!^(\S*)/[\w\d\-\.]+\.pl! ) { $SCRIPT_DIR=$1 }
|
2003-04-14 04:26:11 -04:00
|
|
|
-if (!$SCRIPT_DIR && open(F, '/etc/openwebmail_path.conf')) {
|
|
|
|
+if (!$SCRIPT_DIR && open(F, '%%SYSCONFDIR%%/openwebmail/openwebmail_path.conf')) {
|
2004-03-04 01:34:09 -05:00
|
|
|
$_=<F>; close(F); if ( $_=~/^(\S*)/) { $SCRIPT_DIR=$1 }
|
2003-04-14 04:26:11 -04:00
|
|
|
}
|
2003-11-03 01:15:07 -05:00
|
|
|
-if (!$SCRIPT_DIR) { print "Content-type: text/html\n\nSCRIPT_DIR not set in /etc/openwebmail_path.conf !\n"; exit 0; }
|
|
|
|
+if (!$SCRIPT_DIR) { print "Content-type: text/html\n\nSCRIPT_DIR not set in %%SYSCONFDIR%%/openwebmail/openwebmail_path.conf !\n"; exit 0; }
|
|
|
|
push (@INC, $SCRIPT_DIR);
|
|
|
|
|
2004-03-04 01:34:09 -05:00
|
|
|
foreach (qw(PATH ENV BASH_ENV CDPATH IFS TERM)) { $ENV{$_}='' } # secure ENV
|