diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-07-16 12:44:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-07-16 12:44:42 +0200 |
commit | e06c73cc91e02a1a3dffdb0976fef754f1109e74 (patch) | |
tree | 5a3cd2c0424fe64c3a589ce44a1a054d20fbf655 /src/core/mount.c | |
parent | d05c5031ad4c528fe6bbfed289519edb9f13180a (diff) |
unit: set default working directory to the user's home directory when running in user mode
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 15d5f21530..a88b255875 100644 --- 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); |