From: Taro Yamada Date: Sun, 27 Jan 2019 04:43:30 +0000 (+0900) Subject: Revert "Fixes #11128" X-Git-Tag: v241~51^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff9e7900c007e1b11f7f48b8946d83fb9dbbf002;p=platform%2Fupstream%2Fsystemd.git Revert "Fixes #11128" This reverts commit 0bf05f0122f0f13cd0c0bc35a31861875d2ead31 because it breaks 30c81ce. Please see #11540. --- diff --git a/src/core/execute.c b/src/core/execute.c index 092c80a..07c5a72 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2160,14 +2160,8 @@ static int setup_exec_directory( r = mkdir_label(p, context->directories[type].mode); if (r < 0 && r != -EEXIST) goto fail; - if (r == -EEXIST) { - if (chmod(p, context->directories[type].mode) < 0) { - r = -errno; - goto fail; - } - if (!context->dynamic_user) - continue; - } + if (r == -EEXIST && !context->dynamic_user) + continue; } /* Don't change the owner of the configuration directory, as in the common case it is not written to by