Patch Name: PHCO_29229 Patch Description: s700_800 11.00 Cumulative tar(1) patch Creation Date: 03/06/20 Post Date: 03/07/07 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.CORE-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP 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 (superseded patches were critical) PHCO_24633: ABORT Category Tags: defect_repair enhancement general_release critical halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHCO_29229 Symptoms: PHCO_29229: ( SR: 8606309652 DTS:JAGae72527 ) Enhancement Request:tar has been enhanced to support backup of files upto 8GB from the earlier 2GB ( SR: 8606312485 DTS: JAGae75301 ) The tar(1) large user-id/group-id enhancements do not work correctly in certain circumstances. Restored files appear to have group ids equivalent to their sizes This problem occurs if: o the archive was created with files that have owners/groups present in the /etc/passwd and /etc/group files AND o the owner/group ids have numeric values greater than or equal to 2048k AND o the group entry no longer exists in the /etc/group file when the restore operation is performed PHCO_24633: Tar command cannot restore data. Error message is "directory checksum error". PHCO_20028: Enhancements to tar(1) to function with JFS ACLs. PHCO_13542: tar returns an exit code of 0 when it should return nonzero. This is for the case where a nonfatal error occurs, after which tar continues processing the remaining files. Defect Description: PHCO_29229: ( SR: 8606309652 DTS:JAGae72527 ) Enhancement Request: enhance tar(1) to support the archival of files upto 8GB from the current 2GB. Resolution: Modify tar(1) to support large files upto 8GB. ( SR: 8606312485 DTS: JAGae75301 ) tar(1) restores files with incorrect gid. Resolution: When archiving, if the gid value is greater than or equal to 2048k tar used an incorrect format to store the gid value in the header. The modified tar command uses the correct format to store the gid value in the header. PHCO_24633: ( SR: 8606199103 DTS: JAGad68290 ) Checksum of a file which name has some special characters (e.g., Japanese/Chinese/Korean) might be negative and 11 octal digits long. This could cause over-writing the typeflag (1 byte) and 3 bytes of the linkname in the header of the tar archive. This would modify the header, and the checksum calculated from the modified header does not match the checksum recorded in the archive. This causes the tar command to abort with "directory checksum error". Resolution: We use following methods for this problem: 1) We will use the unsigned file name to calculate the checksum in the tar command. This will prevent the value of checksum from becoming negative and guarantees that archives will not be created containing this error. (2) Try to list/extract the files from the archives containing this error to the greatest degree possible, subject to the following: -- As the mode got from stat(2) in the header only recorded 5 octal digits long for old version, if the file is a symbolic link, we cannot differ it from a character device file in some cases. -- As the typeflag has been over-written, if the file is a hard link, we cannot differ it from a regular file in some cases. -- As the linkname has been over-written in the first 3 characters, if the file is a hard or symbolic link, we cannot link it to the target file when extracting. -- We could list/extract fifo, dir and blk types of files from the error archive. PHCO_20028: Enhancements to tar(1) to function with JFS ACLs. PHCO_13542: If tar encounters a nonfatal error while processing a file, it prints an error message and continues processing the remaining files. If at least one such nonfatal error occurs, tar should return a nonzero exit code. Enhancement: Yes PHCO_29229: This product update makes tar(1M) backup files upto 8GB SR: 8606309652 8606312485 8606199103 5003311746 5003396739 Patch Files: OS-Core.CORE-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: /usr/share/man/man1.Z/tar.1 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lib/nls/msg/C/tar.cat /sbin/tar /usr/bin/tar what(1) Output: OS-Core.CORE-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: /usr/share/man/man1.Z/tar.1: None OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lib/nls/msg/C/tar.cat: None OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/tar: $Revision: 82.4.1.6 $ $ PATCH/11.00:PHCO_27731 Oct 11 2002 12:59:13 $ PATCH_11_00: tar.o 03/06/20 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/tar: $Revision: 82.4.1.6 $ PATCH_11_00: tar.o 03/06/20 cksum(1) Output: OS-Core.CORE-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: 581249620 7186 /usr/share/man/man1.Z/tar.1 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 3234233992 3694 /usr/lib/nls/msg/C/tar.cat OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 1421258265 323584 /sbin/tar OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2152316396 49152 /usr/bin/tar 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_13542 PHCO_20028 PHCO_24633 Equivalent Patches: PHCO_28992: s700: 11.11 s800: 11.11 Patch Package Size: 240 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_29229 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_29229.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_29229. 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_29229.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_29229.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_29229.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None