shared/install: split UNIT_FILE_SYMLINK into two states

The two states are distinguished, but are treated everywhere identically,
so there is no difference in behaviour except for slighlty different log
output.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-03-29 16:17:57 +02:00
parent bd177c6215
commit 48ed75adab
3 changed files with 15 additions and 8 deletions
+4 -2
View File
@@ -282,7 +282,9 @@ int unit_file_resolve_symlink(
*
* If resolve_destination_target is true, an absolute path will be returned.
* If not, an absolute path is returned for linked unit files, and a relative
* path otherwise. */
* path otherwise.
*
* Returns an error, false if this is an alias, true if it's a linked unit file. */
assert(filename);
assert(ret_destination);
@@ -364,7 +366,7 @@ int unit_file_resolve_symlink(
}
*ret_destination = TAKE_PTR(dst);
return 0;
return !tail; /* true if linked unit file */
}
int unit_file_build_name_map(