Patch Name: PHCO_29816 Patch Description: s700_800 11.11 rc(1M) scripts cumulative patch Creation Date: 04/01/02 Post Date: 04/01/26 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.UX-CORE,fr=B.11.11,fa=HP-UX_B.11.11_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_29816 Symptoms: PHCO_29816: ( SR:8606325361 CR:JAGae87651 ) On line terminals, /sbin/rc reports failure even when service runs successfully in background. PHCO_28317: ( SR:8606301844 CR:JAGae65207 ) After the installation of the latest sh-posix patch (PHCO_25597 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_29816: ( SR:8606325361 CR:JAGae87651 ) 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: 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_28317: ( SR:8606301844 CR:JAGae65207 ) Due to adherence to ISOC standards, sh-posix (PHCO_25597 or newer patch) recognizes numbers starting with "0" as octal and those starting with "0x" or "0X" as hexadecimal numbers in arithmetic expressions involving "let" or ((..)). rc.utils script containing the following lines: let ROWS="$rows" let COLS="$cols" where "rows" and "cols" are variables having 3 characters to represent the number of rows and columns of the terminal.If $rows or $cols starts with a leading '0',then 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 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: 1.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: 8606301844 8606325361 Patch Files: OS-Core.UX-CORE,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /sbin/rc.utils what(1) Output: OS-Core.UX-CORE,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /sbin/rc.utils: rc.utils $Date: 2003/09/26 00:08:10 $Revision: r11.1 1/2 PATCH_11.11 (PHCO_29816) cksum(1) Output: OS-Core.UX-CORE,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: 877405903 21454 /sbin/rc.utils Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_28317 Equivalent Patches: None 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_29816 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_29816.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_29816. 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_29816.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_29816.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_29816.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" file.On such cases the user has to restore the customization if required.