Commit 73f8d26e authored by Per Cederqvist's avatar Per Cederqvist

(parameters): Added "Backup file 2".

(read_configuration): Handle backupfile_name_2.
parent c7efdb0a
/*
* $Id: server-config.c,v 0.48 1998/08/07 23:47:42 ceder Exp $
* $Id: server-config.c,v 0.49 1998/10/11 17:19:22 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -32,7 +32,7 @@
*/
static const char *
rcsid = "$Id: server-config.c,v 0.48 1998/08/07 23:47:42 ceder Exp $";
rcsid = "$Id: server-config.c,v 0.49 1998/10/11 17:19:22 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -107,6 +107,9 @@ static const struct parameter parameters[] = {
assign_string, 0, 1, "db/lyskomd-data", &param.datafile_name},
{"Backup file",
assign_string, 0, 1, "db/lyskomd-backup", &param.backupfile_name},
{"Backup file 2",
assign_string, 0, 1, "db/lyskomd-backup-prev",
&param.backupfile_name_2},
{"Text file",
assign_string, 0, 1, "db/lyskomd-texts", &param.textfile_name},
{"Text backup file",
......@@ -364,6 +367,7 @@ read_configuration(const char *conf_file)
assert(param.dbase_dir != NULL);
assert(param.datafile_name != NULL);
assert(param.backupfile_name != NULL);
assert(param.backupfile_name_2 != NULL);
assert(param.textfile_name != NULL);
assert(param.textbackupfile_name != NULL);
assert(param.statistic_name != NULL);
......@@ -383,6 +387,7 @@ read_configuration(const char *conf_file)
add_prefix(&param.datafile_name);
add_prefix(&param.backupfile_name);
add_prefix(&param.backupfile_name_2);
add_prefix(&param.textfile_name);
add_prefix(&param.textbackupfile_name);
add_prefix(&param.statistic_name);
......@@ -396,6 +401,7 @@ read_configuration(const char *conf_file)
{
err |= check_abs_path(&param.datafile_name);
err |= check_abs_path(&param.backupfile_name);
err |= check_abs_path(&param.backupfile_name_2);
err |= check_abs_path(&param.textfile_name);
err |= check_abs_path(&param.textbackupfile_name);
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