Merge pull request #32603 from YHNdnzj/install-basename

shared/install: modernize and eliminate the use of basename()
This commit is contained in:
Yu Watanabe
2024-06-12 18:22:10 +09:00
committed by GitHub
11 changed files with 302 additions and 281 deletions
+1 -1
View File
@@ -699,7 +699,7 @@ static int add_names(
if (inst_fragment &&
fragment_basename &&
!streq(basename(inst_fragment), fragment_basename)) {
!path_equal_filename(inst_fragment, fragment_basename)) {
log_debug("Instance %s has fragment %s and is not an alias of %s.",
inst, inst_fragment, unit_name);
continue;