diff --git a/src/server/dbck-cache.c b/src/server/dbck-cache.c index b9f23374c5ab9c8c5791b7a489df8abac481a6f8..066b925c70f8cd94347f6723fb8c50f57e8acbc6 100644 --- a/src/server/dbck-cache.c +++ b/src/server/dbck-cache.c @@ -1,5 +1,5 @@ /* - * $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. * * This file is part of the LysKOM server. @@ -32,7 +32,7 @@ * 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 ]; int next_text_num = 1; /* Defined in ramkomd.c */ -extern char datafilename[1024]; -extern char backupfilename[1024]; -extern char textfilename[1024]; +extern char datafilename[]; +extern char backupfilename[]; +extern char textfilename[]; static FILE *text_file = NULL; @@ -647,7 +647,9 @@ init_cache(void) 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) )