I compiled the Dartmouth College adjusting rdate under Solaris 2.4, and
discovered that this code:
/*
* The protocol [RFC 868] calls for a null packet
* to be sent to the server first. Then it sends the
* time of day value.
*/
if (write(sock, (char *)&rtime, 0) < 0) {
perror("\nrdate: write");
return(0);
}
fails because the write() returns ERANGE. Is this perchance a bug?
--
-Gary Mills- -Unix Support- -U of M Computer Services-