comparison 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
comparison
equal deleted inserted replaced
16:163aa299bedb 17:6c59dedd06be
123 pair = parse_table_pair(buf, delim); 123 pair = parse_table_pair(buf, delim);
124 list = g_list_append(list, pair); 124 list = g_list_append(list, pair);
125 } 125 }
126 } 126 }
127 fclose(fptr); 127 fclose(fptr);
128 if (list == NULL)
129 logwrite(LOG_NOTICE, "empty table file %s\n", fname);
128 return list; 130 return list;
129 } 131 }
130 logwrite(LOG_ALERT, "could not open table file %s: %s\n", fname, strerror(errno)); 132 logwrite(LOG_ALERT, "could not open table file %s: %s. Thus no aliasing is done\n", fname, strerror(errno));
131 133
132 return NULL; 134 return NULL;
133 } 135 }
134 136
135 void 137 void