static struct file_id_list *file_id_list;
-static void
+static int
add_file_id (const char *filename)
{
struct file_id_list *p;
for (p = file_id_list; p; p = p->next)
if (p->ino == st.st_ino && p->dev == st.st_dev)
{
- FATAL_ERROR ((0, 0, _("%s: file list already read"),
- quotearg_colon (filename)));
+ ERROR ((0, 0, _("%s: file list already read"),
+ quotearg_colon (filename)));
+ return 1;
}
p = xmalloc (sizeof *p);
p->next = file_id_list;
p->ino = st.st_ino;
p->dev = st.st_dev;
file_id_list = p;
+ return 0;
}
\f
enum read_file_list_state /* Result of reading file name from the list file */
}
else
{
- add_file_id (ent->v.file.name);
+ if (add_file_id (ent->v.file.name))
+ return 1;
if ((ent->v.file.fp = fopen (ent->v.file.name, "r")) == NULL)
open_fatal (ent->v.file.name);
}