Patch Name: PHCO_19701 Patch Description: s700_800 11.00 tsm(1) cumulative patch Creation Date: 99/09/03 Post Date: 99/09/09 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: TerminalMngr.TERM-MNGR-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: defect_repair general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_19701 Symptoms: PHCO_19701: 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_18424: 1. tsm(1) fails with "permission denied" message while opening ttys. 2. logname(1) fails on sessions spawned by tsm(1). Defect Description: PHCO_19701: 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_18424: 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. SR: 8606102344 4701428623 4701421222 5003451955 5003457382 Patch Files: TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/tsm /usr/bin/tsmstart /usr/tsm/sys/tsm.root /usr/tsm/sys/tsm.utmp what(1) Output: TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/tsm: $Revision: 70.1 $ Copyright (c) 1990 by SSSI PATCH_11_00: 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 TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/tsmstart: $Header: tsmstart,v 72.2 94/04/04 14:13:14 ssa Exp $ TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: /usr/tsm/sys/tsm.root: $Revision: 70.1.1.1 $ Copyright (c) 1990 by SSSI PATCH_11_00: fct_root.o 99/09/03 TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: /usr/tsm/sys/tsm.utmp: $Revision: 70.1.1.2 $ Copyright (c) 1990 by SSSI PATCH_11_00: fct_utmp.o 99/09/03 cksum(1) Output: TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: 2028989817 372736 /usr/bin/tsm TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: 3012846993 635 /usr/bin/tsmstart TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: 3116843682 16384 /usr/tsm/sys/tsm.root TerminalMngr.TERM-MNGR-MIN,fr=B.11.00, fa=HP-UX_B.11.00_32/64,v=HP: 2659481850 20480 /usr/tsm/sys/tsm.utmp Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_18424 Equivalent Patches: PHCO_19636: s700: 10.01 s800: 10.01 PHCO_19635: s700: 10.20 s800: 10.20 PHCO_19700: s700: 10.10 s800: 10.10 Patch Package Size: 430 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_19701 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_19701.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_19701. If you do not wish to retain a copy of the original software, use the patch_save_files option: swinstall -x autoreboot=true -x patch_match_target=true \ -x patch_save_files=false -s /tmp/PHCO_19701.depot WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_19701.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_19701.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_19701.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None