These may change during "make check", breaking the test.
dp->d_name[strcspn(dp->d_name, unsafe_characters)] != '\0')
continue;
+ if (str_ends_with(dp->d_name, ".tmp") ||
+ str_ends_with(dp->d_name, ".log") ||
+ str_ends_with(dp->d_name, ".trs"))
+ continue;
+
file = t_abspath_to(dp->d_name, path);
if (stat(file, &st) == 0) {
if (S_ISREG(st.st_mode)) {
if (*dp->d_name == '.')
continue;
+ if (str_ends_with(dp->d_name, ".tmp") ||
+ str_ends_with(dp->d_name, ".log") ||
+ str_ends_with(dp->d_name, ".trs"))
+ continue;
+
file = t_abspath_to(dp->d_name, path);
if (stat(file, &st) == 0) {
if (S_ISREG(st.st_mode)) {