Commit 6b6aa2f6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): Added "sendmail path".

(read_configuration): Handle it.
parent 6fd4f472
/*
* $Id: server-config.c,v 0.97 2003/08/16 11:28:56 ceder Exp $
* $Id: server-config.c,v 0.98 2003/08/20 13:44:51 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -520,6 +520,10 @@ static const struct parameter parameters[] = {
assign_int, NULL, 0, 1, "120",
&param.downtime_mail_end,
NULL},
{"sendmail path",
assign_path, unassign_path, 0, 1, SENDMAIL_PATH,
&param.sendmail_path,
NULL},
{"lyskomd path",
assign_path, unassign_path, 0, 1, LYSKOMD_PATH,
&param.lyskomd_path,
......@@ -731,6 +735,7 @@ read_configuration(const char *conf_file)
assert(param.core_dir != NULL);
assert(param.lyskomd_path != NULL);
assert(param.savecore_path != NULL);
assert(param.sendmail_path != NULL);
if (strlen(param.dbase_dir) > 0)
{
......@@ -760,6 +765,8 @@ read_configuration(const char *conf_file)
add_prefix(&param.core_dir);
add_prefix(&param.lyskomd_path);
add_prefix(&param.savecore_path);
if (strcmp(param.sendmail_path, ":") != 0)
add_prefix(&param.sendmail_path);
}
else
{
......@@ -783,6 +790,8 @@ read_configuration(const char *conf_file)
err |= check_abs_path(&param.core_dir);
err |= check_abs_path(&param.lyskomd_path);
err |= check_abs_path(&param.savecore_path);
if (strcmp(param.sendmail_path, ":") != 0)
err |= check_abs_path(&param.sendmail_path);
}
if (param.saved_items_per_call < 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment