Patch Name: PHCO_28992 Patch Description: s700_800 11.11 tar(1) cumulative patch Creation Date: 03/05/22 Post Date: 03/06/10 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.CORE-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP 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 (superseded patches were critical) PHCO_24716: ABORT Category Tags: defect_repair enhancement general_release critical halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHCO_28992 Symptoms: PHCO_28992: ( SR:8606279411 CR:JAGae43464 ) tar(1) from PHCO_26423 fails to backup files of size greater than or equal to 4GB. It fails with the following message: #tar cvf 4gb.tar 4gb-file tar: Size of 4gb-file > 8GB. Not dumped. ( SR:8606310701 CR:JAGae73572 ) 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. The problem occurs when a) The archive was created with files that have owners/groups present in the /etc/passwd and /etc/group files. b) The owner/group ids have numeric values greater than 2048k. c) The group entry no longer exists in the /etc/group file when the restore operation is performed. PHCO_26423: ( SR:8606196471 CR:JAGad65674 ) Enhancement Request: enhance tar(1) to support the archival of files up to 8GB from the current 2GB. PHCO_24716: ( SR:8606206205 CR:JAGad75380 ) Tar command cannot restore data. Error message is "directory checksum error". Defect Description: PHCO_28992: ( SR:8606279411 CR:JAGae43464 ) tar(1) from PHCO_26423 fails to backup files of size 4GB or greater. Resolution: An incorrectly declared internal definition has been modified. Now tar(1) correctly supports the archival of files upto 8GB-1 in size. The tar(1) man page has also been updated to reflect the support of: file sizes up to 8GB-1 large user/group ids ( SR:8606310701 CR:JAGae73572 ) tar(1) can restore files with incorrect gid. Resolution: When archiving, if the gid value exceeds 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_26423: ( SR:8606196471 CR:JAGad65674 ) Enhancement Request: enhance tar(1) to support the archival of files up to 8GB from the current 2GB. Resolution: Modify tar(1) to support large files up to 8GB. PHCO_24716: ( SR:8606206205 CR:JAGad75380 ) 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: ( SR:8606206205 CR:JAGad75380 ) 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. Enhancement: No (superseded patches contained enhancements) PHCO_28992: Enhancements were delivered in a patch this one has superseded. Please review the Defect Description text for more information. SR: 8606196471 8606206205 8606279411 8606310701 Patch Files: OS-Core.CORE-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: /usr/share/man/man1.Z/tar.1 OS-Core.UX-CORE,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /sbin/tar /usr/bin/tar /usr/lib/nls/msg/C/tar.cat what(1) Output: OS-Core.CORE-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: /usr/share/man/man1.Z/tar.1: None OS-Core.UX-CORE,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /sbin/tar: tar.c $Date: 2003/05/19 02:55:16 $Revision: r11.11/6 PATCH_11.11 (PHCO_28992) $Revision: @(#) all CUP11.11_BL2003_0522_1 PATCH_11. 11 PHCO_28992 Thu May 22 03:24:09 PDT 2003 $ $ Version_11.11 May 15 2003 19:55:51 $ /usr/bin/tar: tar.c $Date: 2003/05/19 02:55:16 $Revision: r11.11/6 PATCH_11.11 (PHCO_28992) $Revision: @(#) all CUP11.11_BL2003_0522_1 PATCH_11. 11 PHCO_28992 Thu May 22 03:24:02 PDT 2003 $ /usr/lib/nls/msg/C/tar.cat: None cksum(1) Output: OS-Core.CORE-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: 3659713977 7119 /usr/share/man/man1.Z/tar.1 OS-Core.UX-CORE,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: 3187006897 331776 /sbin/tar 2479059353 45056 /usr/bin/tar 4173064467 3704 /usr/lib/nls/msg/C/tar.cat Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_26423 PHCO_24716 Equivalent Patches: None 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_28992 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_28992.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_28992. 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_28992.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_28992.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_28992.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None