Patch Name: PHCO_19700 Patch Description: s700_800 10.10 tsm(1) cumulative patch Creation Date: 99/09/04 Post Date: 99/09/09 Hardware Platforms - OS Releases: s700: 10.10 s800: 10.10 Products: N/A Filesets: TerminalMngr.TERM-MNGR-MIN Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_19700 Symptoms: PHCO_19700: 1. tsm fails with fct_startwin usage message if pty device files are bad. 2. TSM patches PHCO_18421,PHCO_18422,PHCO_18423 and PHCO_18424 leave stale entries in utmp file. PHCO_18422: 1. tsm(1) fails with "permission denied" message while opening ttys. 2. logname(1) fails on sessions spawned by tsm(1). PHCO_16351: 1. Master terminal hangs in the event its slave fails to open. This results in a window that hangs. Defect Description: PHCO_19700: 1. When the slave pty's are not found it is supposed to give the error message "tsm: cannot get the slave pty name". But the verification check is not passing and the check for the return value of ptsname() is escaped. Due to this, it is trying to open the fct_startw to create a session and there it is missing an argument "device name" which causes the usage error. 2. The patch PHCO_18421-4 writes only the terminal base name in /etc/utmp file when utmp is not idle. But when it is idle, it is looking for a string in /etc/utmp which is not matching the terminal base name written earlier to mark as a 'DEAD PROCESS'. This causes the terminal base name to exist while exiting tsm(1). Resolution: 1. Changes are done to check the return value of the ptsname() and trap the error at that point and notify the user with the error message "tsm: cannot get slave pty name". 2. The 'slave_pty_name' has been passed correctly by locating the terminal base name, which solves the problem. PHCO_18422: 1. tsm(1) fails with "permission denied" message while opening ttys. This is due to an incorrect verification method used for the master-slave tty pair. The previous fix used "/dev/ptym/clone" instead of master pty and the corresponding changes were not made in the verfication process. 2. logname(1) fails with "could not get login name" message on tsm sessions. This is due to incorrect utmp entries being written to the /etc/utmp file by tsm(1). Resolution : 1. During the verification process, check whether the clone device is used instead of the master pty. 2. Write only the base name of the tty to the /etc/utmp file. PHCO_16351: Master terminal hangs in the event its slave fails to open. This results in a window that hangs. SR: 8606102344 4701428623 4701421222 5003451955 5003457382 5003326710 4701400168 Patch Files: /usr/bin/tsm /usr/bin/tsmstart /usr/tsm/sys/tsm.root /usr/tsm/sys/tsm.utmp what(1) Output: /usr/bin/tsm: $Revision: 70.1 $ Copyright (c) 1990 by SSSI PATCH_10_10: facetterm.o commonsend.o ftdecode.o ftw indow.o ftcommand.o ftmodes.o ftterm.o ftter mio.o ftoptions.o ftextra.o attribute.o char acter.o perwindow.o mode.o talksend.o ftkeys .o statusline.o lineattr.o pages.o func.o ta bs.o version.o pc_mode.o check.o output.o co ntrol8.o errors.o clear.o print.o margins.o paste.o graph.o scroll.o capture.o protect.o foreign.o text.o commonread.o fixassign.o i swindow.o wincommon.o set.o lines.o onstatus .o activecom.o rows.o hpattr.o keystroke.o v isible.o info.o tpnotify.o commonopt.o stora ge.o person.o keyboard.o meta.o answer.o com mandmap.o box.o fct_ioctl.o substitute.o gra phscr.o sideeffect.o string.o ibmcontrol.o m ysystem.o infoanswer.o scramble.o 99/09/03 /usr/bin/tsmstart: $Header: tsmstart,v 72.2 94/04/04 14:13:14 ssa Exp $ /usr/tsm/sys/tsm.root: $Revision: 70.1.1.1 $ Copyright (c) 1990 by SSSI PATCH_10_10: fct_root.o 99/09/03 /usr/tsm/sys/tsm.utmp: $Revision: 70.1.1.2 $ Copyright (c) 1990 by SSSI PATCH_10_10: fct_utmp.o 99/09/03 cksum(1) Output: 3758888948 360448 /usr/bin/tsm 3012846993 635 /usr/bin/tsmstart 688963921 12288 /usr/tsm/sys/tsm.root 3330286469 16384 /usr/tsm/sys/tsm.utmp Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_16351 PHCO_18422 Equivalent Patches: PHCO_19636: s700: 10.01 s800: 10.01 PHCO_19635: s700: 10.20 s800: 10.20 PHCO_19701: s700: 11.00 s800: 11.00 Patch Package Size: 440 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_19700 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_19700.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_19700. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. WARNING: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_19700.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_19700.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None