chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unit: set default working directory to the user's home directory when running in...
[elogind.git]
/
src
/
core
/
mount.c
diff --git
a/src/core/mount.c
b/src/core/mount.c
index 15d5f215303376c40a688f9c2dada51fdac2e591..a88b255875203caa8b16b83a0704fb57ea33a403 100644
(file)
--- a/
src/core/mount.c
+++ b/
src/core/mount.c
@@
-631,6
+631,10
@@
static int mount_load(Unit *u) {
r = mount_add_extras(m);
if (r < 0)
return r;
+
+ r = unit_patch_working_directory(UNIT(m), &m->exec_context);
+ if (r < 0)
+ return r;
}
return mount_verify(m);