Patch-ID# 100468-03 Keywords: connection detect so_keepali rcp/rsh crash failed timeout Synopsis: SunOS 4.1.1;4.1.2;4.1.3: rcp/rsh should use setsockopt to detect failed connection. Date: Oct/16/92 Solaris Release: SunOS Release: 4.1.1, 4.1.2, 4.1.3, 4.1.3C Unbundled Product: Unbundled Release: Topic: fixes to rsh and rcp BugId's fixed with this patch: 1075044 1017537 1088518 Changes incorporated in this version: 1075044 Architectures for which this patch is available: sun3 sun4 sun4c Patches which may conflict with this patch: 100527-03 100527 is obsoleted by this patch. Obsoleted by: 4.1.3_U1 Files included with this patch: rcp, rsh Problem Description: Bug: 1075044 ----------- rcp/rsh should set SO_KEEPALIVE on the client end of a connection so that it can detect when the server end has exited abruptly (ie crash, L1A) Currently if rcp is in the middle of writing data it will hang indefinitely Bugid: 1017537 -------------- If a process with a lot of open file descriptors exec's rsh, rsh's select() calls can get confused because they use the old 3.x-style select interface. Bugid: 1088518 -------------- An incorrect bug fix was made to patch 100527-01. This incorrect bug fix causes rsh to wrongly ignore standard input. This makes it impossible to do things like: $ cat /etc/termcap | rsh host wc -l Patch Installation Instructions: -------------------------------- AS ROOT ------- save the existing executable # mv /usr/ucb/rsh /usr/ucb/rsh.FCS # mv /usr/ucb/rcp /usr/ucb/rcp.FCS copy the new binaries for the appropriate architecture to /usr/ucb # cp `arch`/{OS release}/rsh /usr/ucb # cp `arch`/{OS release}/rcp /usr/ucb set the permissions and setuid bit of the new programs # chmod 4755 /usr/ucb/rsh # chmod 4755 /usr/ucb/rcp Special Install Instructions: ----------------------------- None. ~