Commit 49962f38 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): Added "Number file" and "Number temp file".

(read_configuration): Handle them.
parent 5c3e55d9
/*
* $Id: server-config.c,v 0.80 2002/10/26 22:46:20 ceder Exp $
* $Id: server-config.c,v 0.81 2002/11/04 23:20:06 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -129,6 +129,12 @@ static const struct parameter parameters[] = {
{"Text file",
assign_string, unassign_string, 0, 1, "db/lyskomd-texts",
&param.textfile_name},
{"Number file",
assign_string, unassign_string, 0, 1, "db/number.txt",
&param.numberfile_name},
{"Number temp file",
assign_string, unassign_string, 0, 1, "db/number.tmp",
&param.numberfile_tmp_name},
{"Text backup file",
assign_string, unassign_string, 0, 1, "db/lyskomd-texts-backup",
&param.textbackupfile_name},
......@@ -471,6 +477,8 @@ read_configuration(const char *conf_file)
assert(param.backupfile_name_2 != NULL);
assert(param.lockfile_name != NULL);
assert(param.textfile_name != NULL);
assert(param.numberfile_name != NULL);
assert(param.numberfile_tmp_name != NULL);
assert(param.textbackupfile_name != NULL);
assert(param.backup_dir != NULL);
assert(param.statistic_name != NULL);
......@@ -498,6 +506,8 @@ read_configuration(const char *conf_file)
add_prefix(&param.backupfile_name_2);
add_prefix(&param.lockfile_name);
add_prefix(&param.textfile_name);
add_prefix(&param.numberfile_name);
add_prefix(&param.numberfile_tmp_name);
add_prefix(&param.textbackupfile_name);
add_prefix(&param.backup_dir);
add_prefix(&param.statistic_name);
......@@ -519,6 +529,8 @@ read_configuration(const char *conf_file)
err |= check_abs_path(&param.backupfile_name_2);
err |= check_abs_path(&param.lockfile_name);
err |= check_abs_path(&param.textfile_name);
err |= check_abs_path(&param.numberfile_name);
err |= check_abs_path(&param.numberfile_tmp_name);
err |= check_abs_path(&param.textbackupfile_name);
err |= check_abs_path(&param.backup_dir);
err |= check_abs_path(&param.statistic_name);
......
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