From: Lennart Poettering Date: Wed, 10 Apr 2019 19:56:37 +0000 (+0200) Subject: nss-mymachines: return NO_RECOVERY instead of NO_DATA when we fail to do D-Bus and... X-Git-Tag: v242~4^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b0c1bfd8d4aff3097bf9c53c90908acc6faf56d;p=thirdparty%2Fsystemd.git nss-mymachines: return NO_RECOVERY instead of NO_DATA when we fail to do D-Bus and similar This makes more semantical sense and is what we do in nss-resolve in a similar case, hence let's remove the differences here. --- diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c index da3efb960ab..0e76c431727 100644 --- a/src/nss-mymachines/nss-mymachines.c +++ b/src/nss-mymachines/nss-mymachines.c @@ -232,7 +232,7 @@ enum nss_status _nss_mymachines_gethostbyname4_r( fail: UNPROTECT_ERRNO; *errnop = -r; - *h_errnop = NO_DATA; + *h_errnop = NO_RECOVERY; return NSS_STATUS_UNAVAIL; } @@ -403,7 +403,7 @@ enum nss_status _nss_mymachines_gethostbyname3_r( fail: UNPROTECT_ERRNO; *errnop = -r; - *h_errnop = NO_DATA; + *h_errnop = NO_RECOVERY; return NSS_STATUS_UNAVAIL; }