mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
execute: remove one redundant comparison check
This commit is contained in:
parent
40cd2ecc26
commit
d484580ca6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user