f = new_ccan_file(m, m->dir,
subdir ? path_join(m, subdir, ent->d_name)
: ent->d_name);
f = new_ccan_file(m, m->dir,
subdir ? path_join(m, subdir, ent->d_name)
: ent->d_name);
- if (lstat(f->fullname, &st) != 0)
- err(1, "lstat %s", f->fullname);
+ if (stat(f->fullname, &st) != 0)
+ err(1, "stat %s", f->fullname);
- errx(1, "No _info, C or H files found here!");
+ errx(1, "No _info, C or H files found in %s", thisdir);
/* Don't enter subdirs with _info: they're separate modules. */
for (i = 0; i < tal_count(subs); i++) {
/* Don't enter subdirs with _info: they're separate modules. */
for (i = 0; i < tal_count(subs); i++) {