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:
parent
6808e00463
commit
273426750a
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user