From 738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 28 Jun 1999 12:43:04 +0000 Subject: Update. 1999-06-28 Ulrich Drepper * sysdeps/unix/sysv/linux/gethostid.c: Test for gethostbyname_r function correctly. * sunrpc/getrpcport.c: Test for gethostbyname_r function correctly. * sunrpc/clnt_simp.c: Test for gethostbyname_r function correctly. * sunrpc/clnt_gen.c: Test for gethostbyname_r and getprotobyname_r functions correctly. * inet/rexec.c (rexec): Test for gethostbyname_r result correctly. * inet/rcmd.c: Test for gethostbyname_r result correctly. Optimize file reading a bit. * sysdeps/generic/glob.c: Test for getpwnam_r result correctly. 1999-06-28 Andreas Jaeger * manual/string.texi (Copying and Concatenation): Mention that strndup is a GNU extension. 1999-06-28 Andreas Jaeger * pwd/getpw.c (__getpw): Fix check for error return. --- inet/rexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inet/rexec.c') diff --git a/inet/rexec.c b/inet/rexec.c index 4032c82170..6ba7d20f71 100644 --- a/inet/rexec.c +++ b/inet/rexec.c @@ -64,7 +64,7 @@ rexec(ahost, rport, name, pass, cmd, fd2p) hstbuflen = 1024; hsttmpbuf = __alloca (hstbuflen); while (__gethostbyname_r (*ahost, &hostbuf, hsttmpbuf, hstbuflen, - &hp, &herr) < 0) + &hp, &herr) != 0) if (herr != NETDB_INTERNAL || errno != ERANGE) { __set_h_errno (herr); -- cgit v1.2.3