1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-22 09:57:34 +03:00

conf-files: use path_compare_filename()

This commit is contained in:
Yu Watanabe 2023-04-07 05:42:18 +09:00
parent 6808e00463
commit 273426750a

View File

@ -120,7 +120,9 @@ static int files_add(
}
static int base_cmp(char * const *a, char * const *b) {
return strcmp(basename(*a), basename(*b));
assert(a);
assert(b);
return path_compare_filename(*a, *b);
}
int conf_files_list_strv(