execute: remove one redundant comparison check

This commit is contained in:
Lennart Poettering 2019-03-14 17:01:46 +01:00
parent 40cd2ecc26
commit d484580ca6
1 changed files with 4 additions and 3 deletions

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;