+
+ add_string (&entries, &nr_entries, &nr_alloc, NULL);
+
+ /* Visit directory entries in order. In febootstrap <= 2.8 we
+ * didn't impose any order, but that led to some difficult
+ * heisenbugs.
+ */
+ sort (entries, string_compare);
+
+ char path[PATH_MAX];
+ strcpy (path, dirname);
+ size_t len = strlen (dirname);
+ path[len++] = '/';
+
+ char *inputs[] = { path };
+
+ size_t i;
+ for (i = 0; entries[i] != NULL; ++i) {
+ strcpy (&path[len], entries[i]);
+ iterate_inputs (inputs, 1, writer);
+ }