diff src/tables.c @ 17:6c59dedd06be

fixed delivery with empty or non-existent alias file Thanks to Marcos Dione for the hint where to look. (Closes Debian bug #417842)
author meillo@marmaro.de
date Thu, 06 Nov 2008 09:41:35 +0100
parents f671821d8222
children 7354c2e0eb31
line wrap: on
line diff
--- a/src/tables.c	Thu Nov 06 09:33:32 2008 +0100
+++ b/src/tables.c	Thu Nov 06 09:41:35 2008 +0100
@@ -125,9 +125,11 @@
 			}
 		}
 		fclose(fptr);
+		if (list == NULL)
+			logwrite(LOG_NOTICE, "empty table file %s\n", fname);
 		return list;
 	}
-	logwrite(LOG_ALERT, "could not open table file %s: %s\n", fname, strerror(errno));
+	logwrite(LOG_ALERT, "could not open table file %s: %s. Thus no aliasing is done\n", fname, strerror(errno));
 
 	return NULL;
 }