changeset 1062:936b28a365e6

rude fix of ": No such file or directory"
author szabii
date Sat, 09 Jun 2001 00:00:57 +0000
parents 0f7be115a4db
children 269780d31b51
files cfgparser.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cfgparser.c	Fri Jun 08 23:36:58 2001 +0000
+++ b/cfgparser.c	Sat Jun 09 00:00:57 2001 +0000
@@ -267,12 +267,13 @@
 	}
 
 	if ((fp = fopen(conffile, "r")) == NULL) {
+		if (!verbose) printf("Reading config file: %s", conffile);
 		printf(": %s\n", strerror(errno));
 		free(line);
 		ret = 0;
 		goto out;
 	}
-	printf("\n");
+	if (verbose) printf("\n");
 
 	while (fgets(line, MAX_LINE_LEN, fp)) {
 		line_num++;