aboutsummaryrefslogtreecommitdiff
path: root/nis/nss_nis/nis-alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nss_nis/nis-alias.c')
-rw-r--r--nis/nss_nis/nis-alias.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-alias.c b/nis/nss_nis/nis-alias.c
index 64d0bf8..e6e2386 100644
--- a/nis/nss_nis/nis-alias.c
+++ b/nis/nss_nis/nis-alias.c
@@ -278,7 +278,10 @@ _nss_nis_getaliasbyname_r (const char *name, struct aliasent *alias,
if (parse_res == -1)
return NSS_STATUS_TRYAGAIN;
else
- return NSS_STATUS_NOTFOUND;
+ {
+ *errnop = ENOENT;
+ return NSS_STATUS_NOTFOUND;
+ }
}
return NSS_STATUS_SUCCESS;