Commit 7e2ed1b9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Better error message in init_cache.

parent aeb20bc7
/* /*
* $Id: dbck-cache.c,v 0.7 1991/09/15 10:32:39 linus Exp $ * $Id: dbck-cache.c,v 0.8 1991/09/23 18:15:15 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
* Also save time as a time_t instead of a struct tm. * Also save time as a time_t instead of a struct tm.
*/ */
static char *rcsid = "$Id: dbck-cache.c,v 0.7 1991/09/15 10:32:39 linus Exp $"; static char *rcsid = "$Id: dbck-cache.c,v 0.8 1991/09/23 18:15:15 ceder Exp $";
/* /*
...@@ -80,9 +80,9 @@ Text_stat * text_arr[ MAX_TEXT ]; ...@@ -80,9 +80,9 @@ Text_stat * text_arr[ MAX_TEXT ];
int next_text_num = 1; int next_text_num = 1;
/* Defined in ramkomd.c */ /* Defined in ramkomd.c */
extern char datafilename[1024]; extern char datafilename[];
extern char backupfilename[1024]; extern char backupfilename[];
extern char textfilename[1024]; extern char textfilename[];
static FILE *text_file = NULL; static FILE *text_file = NULL;
...@@ -647,7 +647,9 @@ init_cache(void) ...@@ -647,7 +647,9 @@ init_cache(void)
if ( (text_file = fopen(textfilename, "rb")) == NULL ) if ( (text_file = fopen(textfilename, "rb")) == NULL )
{ {
restart_kom("ERROR: init_cache: can't open text file.\n"); perror(textfilename);
restart_kom("ERROR: init_cache: can't open text file %s.\n",
textfilename);
} }
if ( is_clean(datafilename) ) if ( is_clean(datafilename) )
......
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