install: fix errno handling
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Apr 2016 15:59:52 +0000 (17:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:32 +0000 (13:43 +0200)
src/shared/install.c

index 3289b51..8fc9205 100644 (file)
@@ -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;