diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-05-14 17:48:25 +0800 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-05-15 15:04:38 +0800 |
commit | 38f901791f3c4b1cbd04b71323bbef2fdab65f83 (patch) | |
tree | fb03f9eb4c298a754f6e11393b2065012fa4f801 /src/basic | |
parent | 62281c78bb0ef77dafb2cad14c1216c313417a23 (diff) | |
download | systemd-38f901791f3c4b1cbd04b71323bbef2fdab65f83.tar.gz |
unit-file: support UpheldBy= in [Install] settings (adding Upholds= deps
from .upholds/)
Closes #26896
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/unit-file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/basic/unit-file.c b/src/basic/unit-file.c index 41422579d6..54f2137a36 100644 --- a/src/basic/unit-file.c +++ b/src/basic/unit-file.c @@ -250,9 +250,10 @@ bool lookup_paths_timestamp_hash_same(const LookupPaths *lp, uint64_t timestamp_ static int directory_name_is_valid(const char *name) { - /* Accept a directory whose name is a valid unit file name ending in .wants/, .requires/ or .d/ */ + /* Accept a directory whose name is a valid unit file name ending in .wants/, .requires/, + * .upholds/ or .d/ */ - FOREACH_STRING(suffix, ".wants", ".requires", ".d") { + FOREACH_STRING(suffix, ".wants", ".requires", ".upholds", ".d") { _cleanup_free_ char *chopped = NULL; const char *e; |