summaryrefslogtreecommitdiff
path: root/src/shared/install.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-08 17:59:52 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-12 13:43:32 +0200
commitd096025b81db228718a09e8302a0ec403263dcf2 (patch)
treec4324f3544efd4e50d5ebce52e5f614a83adc17d /src/shared/install.c
parent8f9364f98b3816ac90308b198030ba958757bb9b (diff)
install: fix errno handling
Diffstat (limited to 'src/shared/install.c')
-rw-r--r--src/shared/install.c2
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;