From cff5747c74c41b22f1ce1340978b1c226a8cdf32 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 13 Jul 2016 15:04:30 -0400 Subject: fix regression in tcsetattr on all mips archs revert commit 8c316e9e49d37ad92c2e7493e16166a2afca419f. it was wrong and does not match how the kernel API works. --- src/passwd/nscd_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passwd/nscd_query.c') diff --git a/src/passwd/nscd_query.c b/src/passwd/nscd_query.c index d38e371b..1897edc8 100644 --- a/src/passwd/nscd_query.c +++ b/src/passwd/nscd_query.c @@ -40,7 +40,7 @@ retry: buf[0] = NSCDVERSION; fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); - if (fd < 0) return NULL; + if (fd < 0 && errno != EAFNOSUPPORT) return NULL; if(!(f = fdopen(fd, "r"))) { close(fd); -- cgit v1.2.1