18 lines
714 B
Plaintext
18 lines
714 B
Plaintext
--- cgi-bin/openwebmail/openwebmail-vdomain.pl.orig Mon Apr 14 13:22:55 2003
|
|
+++ cgi-bin/openwebmail/openwebmail-vdomain.pl Mon Apr 14 13:23:18 2003
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/suidperl -T
|
|
+#!/usr/bin/perl -T
|
|
#
|
|
# openwebmail-vdomain.pl - virtual domain user management
|
|
#
|
|
@@ -89,7 +89,7 @@
|
|
|
|
use vars qw($SCRIPT_DIR);
|
|
if ( $0 =~ m!^(.*?)/[\w\d\-\.]+\.pl! ) { $SCRIPT_DIR=$1; }
|
|
-if (!$SCRIPT_DIR && open(F, '/etc/openwebmail_path.conf')) {
|
|
+if (!$SCRIPT_DIR && open(F, '%%SYSCONFDIR%%/openwebmail/openwebmail_path.conf')) {
|
|
$_=<F>; close(F); if ( $_=~/^([^\s]*)/) { $SCRIPT_DIR=$1; }
|
|
}
|
|
if (!$SCRIPT_DIR) { print "Content-type: text/html\n\nSCRIPT_DIR not set in /etc/openwebmail_path.conf !\n"; exit 0; }
|