Patch Name: PHCO_29217 Patch Description: s700_800 11.00 ls(1) cumulative patch Creation Date: 03/07/09 Post Date: 03/08/12 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 enhancement general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_29217 Symptoms: PHCO_29217: ( SR:8606265148 CR:JAGae29476 ) ls(1) shows negative value for a link count more than 32767 ( SR:8606203481 CR:JAGad72654 ) ll(1) displays a value 4294967295 as uid and gid for CD-ROM files. ( SR:8606130676 CR:JAGac95566 ) ls -le shows spurious error messages on VxFS. PHCO_20031: Enhancements to ls(1) to function with JFS ACLs. Defect Description: PHCO_29217: ( SR:8606265148 CR:JAGae29476 ) When the link count of a file or directory is more than 32767,ls -l displays negative value for the link count. This problem occurs because st_nlink is an unsigned short variable and the contents of this is being assigned to a signed short variable leading to truncation. NOTE: In order to create more than 32767 hard links to a file, a GR patch PHKL_27947 needs to be installed on the system Steps to reproduce the problem: 1. Create more than 32767 hard links to a file test_file. 2. $ls -l test_file -rw-rw-rw- -32767 vts ssgrp 0 Mar 19 13:53 test_file Resolution: The code has been modified to use the correct data type to take care of truncation problem. ( SR:8606203481 CR:JAGad72654 ) ll(1) or ls -l displays the positive UID/GID's for CD-ROM files, but it should display the negative UID/GID's as per the man page of stat(2). An incorrect type specifier was used in the printf() API for printing UID and GID values. Steps to reproduce the problem: 1. Mount a CD-ROM on a mount point /test 2. ls -l /test total 28672 -r-xr-xr-x 1 4294967295 4294967295 4998 Feb 8 2002 HPII_FAQ.TXT dr-xr-xr-x 1 4294967295 4294967295 2048 Feb 8 2002 PCINSTAL Resolution: The correct type specifiers are being used now,for printing the UID and GID values. ( SR:8606130676 CR:JAGac95566 ) ls -le shows spurious error messages on VxFS, this used to happen because, un-initialised elements of a structure were used to hold the attributes of a file or directory. Example: ls -le / ... dr-xr-xr-x 29 bin bin 1024 May 20 22:36 opt :Not owner ... Resolution: The elements of the structure are initialised before the attributes of a file or directory are stored. PHCO_20031: Enhancements to ls(1) to function with JFS ACLs. Enhancement: No (superseded patches contained enhancements) PHCO_20031: Enhancements were delivered in this patch or one it has replaced. Please review the Defect Description text for more information. SR: 5003311746 8606130676 8606203481 8606265148 Patch Files: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lib/nls/msg/C/ls.cat /sbin/ls /usr/bin/l /usr/bin/lc /usr/bin/ll /usr/bin/ls /usr/bin/lsf /usr/bin/lsr /usr/bin/lsx what(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lib/nls/msg/C/ls.cat: None OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/ls: $Revision: 82.2.1.6 $ $ PATCH/11.00:PHCO_19491 Aug 9 1999 09:51:13 $ PATCH_11_00: ls.o 03/07/09 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/l: $Revision: 82.2.1.6 $ PATCH_11_00: ls.o 03/07/09 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/lc: $Revision: 82.2.1.6 $ PATCH_11_00: ls.o 03/07/09 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/ll: $Revision: 82.2.1.6 $ PATCH_11_00: ls.o 03/07/09 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/ls: $Revision: 82.2.1.6 $ PATCH_11_00: ls.o 03/07/09 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/lsf: $Revision: 82.2.1.6 $ PATCH_11_00: ls.o 03/07/09 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/lsr: $Revision: 82.2.1.6 $ PATCH_11_00: ls.o 03/07/09 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/lsx: $Revision: 82.2.1.6 $ PATCH_11_00: ls.o 03/07/09 cksum(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 466829289 366 /usr/lib/nls/msg/C/ls.cat OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 1090953245 290816 /sbin/ls OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 4106789274 32768 /usr/bin/l OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 4106789274 32768 /usr/bin/lc OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 4106789274 32768 /usr/bin/ll OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 4106789274 32768 /usr/bin/ls OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 4106789274 32768 /usr/bin/lsf OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 4106789274 32768 /usr/bin/lsr OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 4106789274 32768 /usr/bin/lsx Patch Conflicts: None Patch Dependencies: s700: 11.00: PHCO_19491 PHKL_19991 s800: 11.00: PHCO_19491 PHKL_19991 Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_20031 Equivalent Patches: PHCO_27415: s700: 11.11 s800: 11.11 Patch Package Size: 200 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_29217 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_29217.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_29217. 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_29217.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_29217.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_29217.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None