Patch Name: PHCO_11975 Patch Description: s700_800 10.01 pax(1) cumulative patch Creation Date: 97/07/30 Post Date: 97/08/06 Hardware Platforms - OS Releases: s700: 10.01 s800: 10.01 Products: N/A Filesets: OS-Core.UX-CORE Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_11975 Symptoms: PHCO_11975: 1. pax with "-p e" or "-p o" incorrectly restores owner/group for file types other than regular files and directories. 2. pax may incorrectly restore hard links. 3. When pax cannot find the archive file specified on the command line, the following error messages are displayed: "pax: [offset 0m+0k+0]: No such file or directory" "pax: [offset 0m+0k+0]: Bad file number" "pax: Unable to determine the archive format." PHCO_11143: pax -X does not work correctly. For two file systems (/mnt1 and /mnt2), the following pax command "pax -wXf /dev/rmt/0m /mnt1 /mnt2" should archive both file systems. However, it only archived /mnt1 and /mnt2's directory name but not /mnt2's contents. PHCO_11029: 1. For tar format archives, pax does not correctly handle file names with length >= 100. For directories, the name field gets null, resulting in tar (on extraction) thinking it is at end of archive, or pax (on extraction) incorrectly restoring those directories. For regular files, the mode gets appended to the file name on extraction. 2. For tar format archives, when the user wants to preserve the UIDs/GIDs on the archive, pax restores with UIDs/GIDs of invoking user if the uname/gname on the archive does not exist on the system. PHCO_10380: pax archive not restored correctly; tar tvf shows " /" in front of affected files. Defect Description: PHCO_11975: 1. pax with "-p e" or "-p o" incorrectly restores owner/group for special files, which includes file types other than regular file and directory (character special, block special, fifo, symbolic link). pax assigns the owner/group to be that of the current process, rather than what is on the archive. Regular files and directories are restored correctly. 2. pax may incorrectly restore hand links. When creating an archive, pax uses a hash array and keeps linked lists of all hard links. The problem occurs when multiple inodes (which have hard links) hash to the same address; hash collisions are not handled correctly. Therefore, the problem does not always occur for all hard links, since hash collisions do not always occur. 3. When pax cannot find the archive file specified on the command line, the following error messages are displayed: "pax: [offset 0m+0k+0]: No such file or directory" "pax: [offset 0m+0k+0]: Bad file number" "pax: Unable to determine the archive format." pax is using a warning message routine which is intended for when a corrupt archive is encountered, where the offsets may be useful. A different routine should be used for when the archive file is not found. PHCO_11143: The current pax -X implementation did not take into account that more than one pathname (hence more than one device ID) can be specified on the command line. So, it sets the device ID to be checked from the beginning and it never changes. The fix is to reset the device ID for checking for each new pathname on the command line or stdin. PHCO_11029: 1. For tar format archives, pax does not handle correctly file names >= 100. For directories, the name field of the tar header ends up null. Then if the tar command is used for extraction, it hits the null and thinks it is at end of archive. If pax is used for extraction, it may incorrectly restore those directories. For regular files, if name >= 100, the mode (next header field) gets appended to the file name. 2. For tar format archives, when extracting a file with a UID/GID that cannot be found in /etc/passwd, pax restores the file with UID/GID of the invoking user, even when the user specifies "-p e" or "-p o". PHCO_10380: pax archive not restored correctly when minor number for file is 8 octal digits long. tar tvf shows an extra " /" in front of affected files. Unwinding the archive creates a directory called " " (space). SR: 5003358804 Patch Files: /usr/lib/nls/msg/C/pax.cat /usr/bin/pax /sbin/pax what(1) Output: /usr/lib/nls/msg/C/pax.cat: None /usr/bin/pax: $Revision: 76.10.2.4 $ PATCH_10_01: /usr/ccs/lib/crt0.o hpux_rel.o pax.o ap pend.o buffer.ocpio.o create.o extract.o fi leio.o hash.o link.o list.omem.o namelist.o names.o pass.o pathname.o replace.o tar.ott yio.o warn.o charmap.o 97/07/30 /sbin/pax: $Revision: 76.10.2.4 $ /usr/lib/libc: $Revision: 76.3 $ PATCH_10_01: /usr/ccs/lib/crt0.o hpux_rel.o pax.o ap pend.o buffer.ocpio.o create.o extract.o fi leio.o hash.o link.o list.omem.o namelist.o names.o pass.o pathname.o replace.o tar.ott yio.o warn.o charmap.o 97/07/30 cksum(1) Output: 1973757681 6246 /usr/lib/nls/msg/C/pax.cat 2521521937 65536 /usr/bin/pax 2324159627 348160 /sbin/pax Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_10380 PHCO_11029 PHCO_11143 Equivalent Patches: None Patch Package Size: 470 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_11975 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_11975.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHCO_11975.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_11975. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_11975.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_11975.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None