openbsd-ports/mail/openwebmail/patches/patch-cgi-bin_openwebmail_shares_ow-shared_pl
2004-03-04 06:34:09 +00:00

23 lines
1.4 KiB
Plaintext

$OpenBSD: patch-cgi-bin_openwebmail_shares_ow-shared_pl,v 1.1 2004/03/04 06:34:11 kevlo Exp $
--- cgi-bin/openwebmail/shares/ow-shared.pl.orig Thu Mar 4 12:37:54 2004
+++ cgi-bin/openwebmail/shares/ow-shared.pl Thu Mar 4 12:38:50 2004
@@ -222,14 +222,14 @@
########## USERENV_INIT ##########################################
# init user globals, switch euid
sub userenv_init {
- load_owconf(\%config_raw, "$SCRIPT_DIR/etc/openwebmail.conf.default");
- read_owconf(\%config, \%config_raw, "$SCRIPT_DIR/etc/openwebmail.conf") if (-f "$SCRIPT_DIR/etc/openwebmail.conf");
+ load_owconf(\%config_raw, "%%SYSCONFDIR%%/openwebmail/openwebmail.conf.default");
+ read_owconf(\%config, \%config_raw, "%%SYSCONFDIR%%/openwebmail/openwebmail.conf") if (-f "%%SYSCONFDIR%%/openwebmail/openwebmail.conf");
loadlang($config{'default_language'}); # so %lang... can be used in error msg
if ($config{'smtpauth'}) { # load smtp auth user/pass
- read_owconf(\%config, \%config_raw, "$SCRIPT_DIR/etc/smtpauth.conf");
+ read_owconf(\%config, \%config_raw, "%%SYSCONFDIR%%/openwebmail/smtpauth.conf");
if ($config{'smtpauth_username'} eq "" || $config{'smtpauth_password'} eq "") {
- openwebmailerror(__FILE__, __LINE__, "$SCRIPT_DIR/etc/smtpauth.conf $lang_err{'param_fmterr'}");
+ openwebmailerror(__FILE__, __LINE__, "%%SYSCONFDIR%%/openwebmail/smtpauth.conf $lang_err{'param_fmterr'}");
}
}