about summary refs log tree commit diff
path: root/src/passwd/nscd_query.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-07-13 15:04:30 -0400
committerRich Felker <dalias@aerifal.cx>2016-07-13 15:04:30 -0400
commitcff5747c74c41b22f1ce1340978b1c226a8cdf32 (patch)
treed4bb639db22cf5defe5c23126688f70e40df4841 /src/passwd/nscd_query.c
parent6399fa9d29ea83de4735680b77d457bd59606532 (diff)
downloadmusl-cff5747c74c41b22f1ce1340978b1c226a8cdf32.tar.gz
musl-cff5747c74c41b22f1ce1340978b1c226a8cdf32.tar.xz
musl-cff5747c74c41b22f1ce1340978b1c226a8cdf32.zip
fix regression in tcsetattr on all mips archs
revert commit 8c316e9e49d37ad92c2e7493e16166a2afca419f. it was wrong
and does not match how the kernel API works.
Diffstat (limited to 'src/passwd/nscd_query.c')
-rw-r--r--src/passwd/nscd_query.c2
1 files changed, 1 insertions, 1 deletions
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);