unit: set default working directory to the user's home directory when running in user mode

This commit is contained in:
Lennart Poettering
2012-07-16 12:44:42 +02:00
parent d05c5031ad
commit e06c73cc91
7 changed files with 37 additions and 2 deletions
+4
View File
@@ -372,6 +372,10 @@ static int socket_load(Unit *u) {
if (UNIT(s)->default_dependencies)
if ((r = socket_add_default_dependencies(s)) < 0)
return r;
r = unit_patch_working_directory(UNIT(s), &s->exec_context);
if (r < 0)
return r;
}
return socket_verify(s);