chiark / gitweb /
unit: set default working directory to the user's home directory when running in...
[elogind.git] / src / core / mount.c
index 15d5f215303376c40a688f9c2dada51fdac2e591..a88b255875203caa8b16b83a0704fb57ea33a403 100644 (file)
@@ -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);