about summary refs log tree commit diff
path: root/inet/rexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/rexec.c')
-rw-r--r--inet/rexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/inet/rexec.c b/inet/rexec.c
index d91949de3c..611ff57287 100644
--- a/inet/rexec.c
+++ b/inet/rexec.c
@@ -71,6 +71,7 @@ rexec(ahost, rport, name, pass, cmd, fd2p)
 				  &hp, &herr) < 0)
 	  if (herr != NETDB_INTERNAL || errno != ERANGE)
 	    {
+	      __set_h_errno (herr);
 	      herror(*ahost);
 	      return -1;
 	    }