]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
portable: fix error handling
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:56:27 +0000 (13:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:56:27 +0000 (13:56 +0900)
src/portable/portable.c

index eb5daf3b0e1a27045f34ccb99818fd03ce6a64d6..3491723aa144200fa0f5f17a43b09555db6e4b06 100644 (file)
@@ -782,7 +782,7 @@ static int install_profile_dropin(
 
         r = find_profile(profile, m->name, &from);
         if (r < 0) {
-                if (r != ENOENT)
+                if (r != -ENOENT)
                         return log_debug_errno(errno, "Profile '%s' is not accessible: %m", profile);
 
                 log_debug_errno(errno, "Skipping link to profile '%s', as it does not exist: %m", profile);