From: Yu Watanabe Date: Mon, 25 Jun 2018 04:56:27 +0000 (+0900) Subject: portable: fix error handling X-Git-Tag: v240~1051^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99c89da02d52619bb05633b70f07fdd353ea12ce;p=thirdparty%2Fsystemd.git portable: fix error handling --- diff --git a/src/portable/portable.c b/src/portable/portable.c index eb5daf3b0e1..3491723aa14 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -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);