X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmount.c;h=fc981c74f430dc957ef8ef14578a2f0e3f5ee9b5;hb=bfba3256a02a0871579c4ee48d787dfe4585fd8d;hp=5709db2266196c1a9e82ce25f35ae18bdb9a1598;hpb=c74f17d96cccd4cc998fd037cb92046930188c91;p=elogind.git diff --git a/src/core/mount.c b/src/core/mount.c index 5709db226..fc981c74f 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -634,7 +634,7 @@ static int mount_load(Unit *u) { if (r < 0) return r; - r = unit_patch_working_directory(UNIT(m), &m->exec_context); + r = unit_exec_context_defaults(u, &m->exec_context); if (r < 0) return r; } @@ -1225,7 +1225,7 @@ static void mount_sigchld_event(Unit *u, pid_t pid, int code, int status) { m->control_pid = 0; - if (is_clean_exit(code, status)) + if (is_clean_exit(code, status, NULL)) f = MOUNT_SUCCESS; else if (code == CLD_EXITED) f = MOUNT_FAILURE_EXIT_CODE;