We need to count only files in the final list, not in the temporary
lists.
Signed-off-by: Karel Zak <kzak@redhat.com>
goto finish;
}
list_add_tail(&add_element->file_list, &etc_run_file_list);
- counter++;
}
list_del(&run_element->file_list);
} else {
goto finish;
}
list_add_tail(&add_element->file_list, &etc_run_file_list);
- counter++;
}
/* taking the rest of /run */
goto finish;
}
list_add_tail(&add_element->file_list, &etc_run_file_list);
- counter++;
}
/* Merging etc_run list and var list in the correct order. Output: file_list
-Found 6 configuration file(s):
+Found 4 configuration file(s):
@TESTDIR@/etc/proj/example.conf
@TESTDIR@/usr/proj/example.conf.d/10-base.conf
@TESTDIR@/run/proj/example.conf.d/20-override.conf
-Found 4 configuration file(s):
+Found 2 configuration file(s):
@TESTDIR@/etc/proj/example.conf.d/10-first.conf
@TESTDIR@/etc/proj/example.conf.d/20-second.conf
-Found 2 configuration file(s):
+Found 1 configuration file(s):
@TESTDIR@/etc/proj/example.conf.d/10-config.conf