Patch Name: PHCO_11143 Patch Description: s700_800 10.01 pax(1) cumulative patch Creation Date: 97/05/21 Post Date: 97/05/27 Hardware Platforms - OS Releases: s700: 10.01 s800: 10.01 Products: N/A Filesets: OS-Core.UX-CORE Automatic Reboot?: No Status: General Superseded Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_11143 Symptoms: 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_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.3 $ PATCH_10_01: hpux_rel.o pax.o append.o buffer.o cpio .o create.o extract.o fileio.o hash.o link.o list.o mem.o namelist.o names.o pass.o path name.o replace.o tar.o ttyio.o warn.o charma p.o 97/05/21 /sbin/pax: $Revision: 76.10.2.3 $ /usr/lib/libc: $Revision: 76.3 $ PATCH_10_01: hpux_rel.o pax.o append.o buffer.o cpio .o create.o extract.o fileio.o hash.o link.o list.o mem.o namelist.o names.o pass.o path name.o replace.o tar.o ttyio.o warn.o charma p.o 97/05/21 cksum(1) Output: 1973757681 6246 /usr/lib/nls/msg/C/pax.cat 3934137391 65536 /usr/bin/pax 1169206585 348160 /sbin/pax Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_10380 PHCO_11029 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_11143 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_11143.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_11143.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_11143. 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_11143.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_11143.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None