chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core: don't fail to run services in --user instances if $HOME is missing
[elogind.git]
/
src
/
core
/
unit.c
diff --git
a/src/core/unit.c
b/src/core/unit.c
index 67425ba913e0e2ce317ad5b6e852c0983ca7ec36..514b6491ceead8301c679d8e22b3085add7fcad3 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-3178,6
+3178,10
@@
int unit_patch_contexts(Unit *u) {
r = get_home_dir(&ec->working_directory);
if (r < 0)
return r;
+
+ /* Allow user services to run, even if the
+ * home directory is missing */
+ ec->working_directory_missing_ok = true;
}
if (u->manager->running_as == SYSTEMD_USER &&