diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-04-08 17:59:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-12 13:43:32 +0200 |
commit | d096025b81db228718a09e8302a0ec403263dcf2 (patch) | |
tree | c4324f3544efd4e50d5ebce52e5f614a83adc17d /src/shared | |
parent | 8f9364f98b3816ac90308b198030ba958757bb9b (diff) |
install: fix errno handling
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c index 3289b51f41..8fc9205107 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -1600,7 +1600,7 @@ int unit_file_unmask( return -ENOMEM; if (unlink(path) < 0) { - if (errno != -ENOENT && r >= 0) + if (errno != ENOENT && r >= 0) r = -errno; continue; |