unit-file,portable: replace streq + basename with path_equal_filename

This commit is contained in:
Mike Yuan
2024-06-11 23:17:21 +01:00
committed by Luca Boccassi
parent 521a7c9bb9
commit 178a71d970
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -596,7 +596,7 @@ static int normalize_portable_changes(
bool found = false;
for (size_t j = 0; j < n_changes_attached; ++j)
if (streq(basename(changes_detached[i].path), basename(changes_attached[j].path))) {
if (path_equal_filename(changes_detached[i].path, changes_attached[j].path)) {
found = true;
break;
}