Patch Name: PHCO_30250 Patch Description: s700_800 11.00 rc(1M) scripts cumulative patch Creation Date: 04/03/07 Post Date: 04/04/06 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.UX-CORE,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_30250 Symptoms: PHCO_30250: 1. On line terminals, /sbin/rc reports failure even when service runs successfully in background. PHCO_28316: 1. After the installation of the latest sh-posix patch (PHCO_26789 or newer patch), rc scripts on some systems show the following error message during bootup: "/sbin/rc[41]: 079: The specified number is not valid for this command." Defect Description: PHCO_30250: 1. The service invoked by /sbin/rc returns value 4, if running in background. This is incorrectly reported as failure by /sbin/rc.utils. This defect is visible only if a line terminal is attached to the system. Resolution: 1. The script, /sbin/rc.utils, is modified to check for the return value when the service is running in background and display correct status. PHCO_28316: 1. sh-posix now (PHCO_26789 or newer patch) adheres to ISOC standards by recognizing the octal and hexadecimal numbers (i.e., numbers starting with 0 should be recognized as octal and starting with 0x or 0X should be recognized as hexadecimal) in arithmetic expressions involving let, $((..)) or ((..)). This exposed a problem in rc.utils script containing the following lines: let ROWS="$rows" let COLS="$cols" where "rows" and "cols" contain 3 digit decimal values of number of rows and columns of the HP terminal device. If the $rows or $cols starts with a leading zero, sh-posix(1) recognizes these numbers as octal numbers instead of recognizing them as decimal numbers. For example, if the value of "rows" is set to "079", then sh-posix(1) will recognize the value of "rows" as octal number while processing the let statement "let ROWS="$rows"".Since "079" isn't a valid octal number,the following error message is displayed during bootup: "/sbin/rc[41]: 079: The specified number is not valid for this command." Resolution: The fix is to change the lines: let ROWS="$rows" let COLS="$cols" to let ROWS="${rows##*(0)}" let COLS="${cols##*(0)}" which removes the leading zeroes. Enhancement: No SR: 8606345712 8606249302 Patch Files: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/rc.utils what(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/rc.utils: $Revision: 82.1.1.2 $ cksum(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 958682208 21398 /sbin/rc.utils Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_28316 Equivalent Patches: PHCO_29816: s700: 11.11 s800: 11.11 Patch Package Size: 30 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_30250 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_30250.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_30250. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false 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_30250.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_30250.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_30250.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: Installation of this patch removes any customization done by the user to "/sbin/rc.utils" script. On such cases the user has to restore the customization if required.