execute: remove one redundant comparison check

This commit is contained in:
Lennart Poettering
2019-03-19 16:52:28 +01:00
parent 40cd2ecc26
commit d484580ca6
+4 -3
View File
@@ -2164,11 +2164,12 @@ static int setup_exec_directory(
}
} else {
r = mkdir_label(p, context->directories[type].mode);
if (r < 0 && r != -EEXIST)
goto fail;
if (r == -EEXIST) {
if (r < 0) {
struct stat st;
if (r != -EEXIST)
goto fail;
if (stat(p, &st) < 0) {
r = -errno;
goto fail;