about summary refs log tree commit diff
path: root/inet/rcmd.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-28 12:43:04 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-28 12:43:04 +0000
commit738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82 (patch)
treebc18f398e0681d23de9f337fc065fffdad6c20bb /inet/rcmd.c
parent419505579c2befc057e2687f6d7b948c417bae2c (diff)
downloadglibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.tar.gz
glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.tar.xz
glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.zip
Update.
1999-06-28  Ulrich Drepper  <drepper@cygnus.com>

	* 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  <aj@arthur.rhein-neckar.de>

	* manual/string.texi (Copying and Concatenation): Mention that
	strndup is a GNU extension.

1999-06-28  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* pwd/getpw.c (__getpw): Fix check for error return.
Diffstat (limited to 'inet/rcmd.c')
-rw-r--r--inet/rcmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c
index 6d196b7311..d8235daf70 100644
--- a/inet/rcmd.c
+++ b/inet/rcmd.c
@@ -80,7 +80,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
 	hstbuflen = 1024;
 	tmphstbuf = __alloca (hstbuflen);
 	while (__gethostbyname_r (*ahost, &hostbuf, tmphstbuf, hstbuflen,
-				  &hp, &herr) < 0)
+				  &hp, &herr) != 0)
 	  if (herr != NETDB_INTERNAL || errno != ERANGE)
 	    {
 	      __set_h_errno (herr);
@@ -469,7 +469,7 @@ __icheckhost (raddr, lhost, rhost)
 	buffer = __alloca (buflen);
 	save_errno = errno;
 	while (__gethostbyname_r (lhost, &hostbuf, buffer, buflen, &hp, &herr)
-	       < 0)
+	       != 0)
 		if (herr != NETDB_INTERNAL || errno != ERANGE)
 			return (0);
 		else {
@@ -563,10 +563,10 @@ __ivaliduser2(hostf, raddr, luser, ruser, rhost)
 
 	/* Skip lines that are too long. */
 	if (strchr (p, '\n') == NULL) {
-	    int ch = getc (hostf);
+	    int ch = getc_unlocked (hostf);
 
 	    while (ch != '\n' && ch != EOF)
-		ch = getc (hostf);
+		ch = getc_unlocked (hostf);
 	    continue;
 	}