Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!mcnc!ece-csc!ecehendrix!rlj From: rlj@ecehendrix.ncsu.edu (Rick Johnson) Newsgroups: comp.bugs.4bsd Subject: rcmd error message Message-ID: <3343@ece-csc.UUCP> Date: Wed, 13-May-87 00:14:14 EDT Article-I.D.: ece-csc.3343 Posted: Wed May 13 00:14:14 1987 Date-Received: Sat, 16-May-87 01:27:37 EDT Sender: root@ece-csc.UUCP Reply-To: rlj@ecehendrix.ncsu.edu (Rick Johnson) Distribution: world Organization: NCSU Electrical and Computer Engineering Dept., Raleigh, NC Lines: 24 The following code from rcmd.c prints "hostname: Error 0" when rcmd doesn't read a character from the remote site's rshd. Since a system error has not occurred with the failure to read a character, errno is 0 and the undefined system error message is printed. 8 static char sccsid[] = "@(#)rcmd.c 5.11 (Berkeley) 5/6/86"; . . . 129 if (read(s, &c, 1) != 1) { 130 perror(*ahost); 131 goto bad2; 132 } The lack of an appropriate error message made it difficult to find the actual problem I was having with rcp; which in my case was that the remote machine, for some reason, didn't have /etc/rshd. Rick Johnson Internet: rlj@ecehendrix.ncsu.edu Electrical & Computer Engineering Dept. UUCP: decvax!mcnc!ece-csc!rlj North Carolina State University Raleigh, NC