mirror of
https://github.com/systemd/systemd
synced 2024-10-04 15:21:01 +00:00
bless-boot: remove a bunch of 'else'
This commit is contained in:
parent
e109541fe6
commit
c06103be64
|
@ -448,12 +448,12 @@ static int verb_set(int argc, char *argv[], void *userdata) {
|
|||
r = rename_noreplace(fd, skip_slash(source1), fd, skip_slash(target));
|
||||
if (r == -EEXIST)
|
||||
goto exists;
|
||||
else if (r == -ENOENT) {
|
||||
if (r == -ENOENT) {
|
||||
|
||||
r = rename_noreplace(fd, skip_slash(source2), fd, skip_slash(target));
|
||||
if (r == -EEXIST)
|
||||
goto exists;
|
||||
else if (r == -ENOENT) {
|
||||
if (r == -ENOENT) {
|
||||
|
||||
if (faccessat(fd, skip_slash(target), F_OK, 0) >= 0) /* Hmm, if we can't find either source file, maybe the destination already exists? */
|
||||
goto exists;
|
||||
|
|
Loading…
Reference in a new issue