]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nss-mymachines: return NO_RECOVERY instead of NO_DATA when we fail to do D-Bus and...
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Apr 2019 19:56:37 +0000 (21:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Apr 2019 09:13:10 +0000 (11:13 +0200)
This makes more semantical sense and is what we do in nss-resolve in a
similar case, hence let's remove the differences here.

src/nss-mymachines/nss-mymachines.c

index da3efb960abf50f44502d7c1ecbe868bd6b48f9f..0e76c4317275417e666709a1e3d5975d7234a2f9 100644 (file)
@@ -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;
 }