TECHNICAL INFORMATION DOCUMENT TITLE: PTF150 - Who command patch DOCUMENT ID: TID300026 DOCUMENT REVISION: B DATE: 25JAN95 ALERT STATUS: Yellow INFORMATION TYPE: Symptom Solution README FOR: PTF150 PRODUCT and VERSION: UnixWare 1.1 ABSTRACT: The ptf150 file contains the patch to the "who" command corrects the "state" and "idle time" information for terminal lines with device names longer than 12 characters. The "state" field will now correctly reflect whether the terminal is writable by others and the "idle" column will contain the hours and minutes since activity was last observed on the line. This patch may be installed on any UnixWare 1.1 or UnixWare 1.1.1 system. SYMPTOM Before installing this patch, the "state" information displayed by "who -T" for lines with device names longer than 12 characters will usually be "?", indicating a bad line, and "idle time" either will not be displayed at all or will be incorrect. SOLUTION Apply the ptf150 file. Installation Instructions: DATATYPE: datastream 1. Download the ptf150.Z and ptf150.txt files to the /tmp directory on your machine. 2. Read the release notes contained in this file. 3. Now become root, uncompress the file and add the package to your system using the following commands: $ su # uncompress /tmp/ptf150.Z # pkgadd -d /tmp/ptf150 ptf150 Solution Specifics 1. General Description This patch to the "who" command corrects the "state" and "idle time" information for terminal lines with device names longer than 12 characters. The "state" field will now correctly reflect whether the terminal is writable by others and the "idle" column will contain the hours and minutes since activity was last observed on the line. 2. New Features None 3. Software Notes and Recommendations Device names longer than 12 characters are used by the device drivers for some multiple-port serial communications cards. Since device names stored in the ut_line field (for entries with ut_type = USER_PROCESS) are derived by deleting the initial "/dev/" characters from the full device name and the length of these entries is limited to a maximum of 11 characters (see /usr/include/utmp.h), the maximum length of a device name is 16 characters. This patch may be installed on any UnixWare 1.1 or UnixWare 1.1.1 system. NOTE: This patch modifies same files as update 1.1.2 4. Hardware Notes and Recommendations None 5. Installation Instructions Depending on the format: If this PTF was delivered on a diskette, then (as "root") # pkgadd -d diskette1 should install this patch. Otherwise, if you have a file such as "ptf150" which is in a "stream" format, then (as "root") # pkgadd -d /ptf150 will work. 6. Troubleshooting Before installing this patch, the "state" information displayed by "who -T" for lines with device names longer than 12 characters will usually be "?", indicating a bad line, and "idle time" either will not be displayed at all or will be incorrect. After installing this patch, this information will now be displayed correctly (see the "who" manual page for details).