Patch Name: PHCO_29699 Patch Description: s700_800 11.04 (VVOS) rc scripts patch Creation Date: 03/09/09 Post Date: 03/09/11 Hardware Platforms - OS Releases: s700: 11.04 s800: 11.04 Products: N/A Filesets: OS-Core.UX-CORE,fr=B.11.04,fa=HP-UX_B.11.04_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_29699 Symptoms: PHCO_29699: Repackaged HP-UX patch PHCO_28316 for VVOS Based on HP-UX patch 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_29699: Repackaged HP-UX patch PHCO_28316 for VVOS Based on HP-UX patch 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: 8606249302 Patch Files: OS-Core.UX-CORE,fr=B.11.04,fa=HP-UX_B.11.04_32/64,v=HP: /sbin/rc.utils what(1) Output: OS-Core.UX-CORE,fr=B.11.04,fa=HP-UX_B.11.04_32/64,v=HP: /sbin/rc.utils: $Revision: 82.1.1.1 $ cksum(1) Output: OS-Core.UX-CORE,fr=B.11.04,fa=HP-UX_B.11.04_32/64,v=HP: 1093630622 21781 /sbin/rc.utils Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: PHCO_28316: s700: 11.00 s800: 11.00 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_29699 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_29699.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_29699. 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_29699.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_29699.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_29699.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.