diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-04-10 21:56:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-04-11 11:13:10 +0200 |
commit | 2b0c1bfd8d4aff3097bf9c53c90908acc6faf56d (patch) | |
tree | fec084748afd13e0257d06620c2ee5440e3f5033 /src/nss-mymachines | |
parent | nss-myhostname: unify code that handles NOT_FOUND case (diff) | |
download | systemd-2b0c1bfd8d4aff3097bf9c53c90908acc6faf56d.tar.xz systemd-2b0c1bfd8d4aff3097bf9c53c90908acc6faf56d.zip |
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.
Diffstat (limited to 'src/nss-mymachines')
-rw-r--r-- | src/nss-mymachines/nss-mymachines.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c index da3efb960a..0e76c43172 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; } |