Revert "Fixes #11128"
This reverts commit0bf05f0122because it breaks30c81ce. Please see #11540.
This commit is contained in:
+2
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user