Patch Name: PHCO_22504 Patch Description: s700_800 10.10 df(1M) cumulative patch Creation Date: 00/10/17 Post Date: 00/10/19 Hardware Platforms - OS Releases: s700: 10.10 s800: 10.10 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_22504 Symptoms: PHCO_22504: Program abort. PHCO_13981: This patch allows df to display input for very long file/path names. For example, if a file system is mounted on /usr/TST90123456789012345678901234567890, executing 'df' will properly display it. However, if you 'cd /usr' and do df TST90123456789012345678901234567890 df will fail with: df:open of /usr/TST901234567890123456789012 failed. PHCO_6587: Incorrect behavior. Defect Description: PHCO_22504: Buffer overflow. Resolution: Modify df(1m) to check the length of the buffer. PHCO_13981: The df command was relying on the 'f_fstr' value returned from statvfs to determine the mount point. This value is not reliable since it is limited to 32 chars, and is not necessarily the mount point since it is simply a 'file system specific string'. A new method has been added to correctly identify the file system mount point. PHCO_6587: df -P option displays the Capacity in percentage used. This value displayed should conform to the XPG4 standards, which states: The percentage of the normally available space that is currently allocated to all files on the file system. This shall be calculated using the fraction /+) expressed as a percentage. This percentage may be greater than 100% if is less than zero. The percentage value shall be expressed as a positive integer, with any fractional result causing it to be rounded to the next highest integer. If the percentage used has a fractional part less than 0.5, df (1M) was rounding it off to the lower integer instead of rounding it to the next highest integer. This patch fixes the above said problem with the df(1M) command. SR: 8606152609 1653247296 4701311563 Patch Files: /usr/bin/df what(1) Output: /usr/bin/df: $Revision: 76.3.1.3 $ $Revision: 76.3.1.3 $ PATCH_10_10: df.o extents.o hpux_rel.o 00/10/17 cksum(1) Output: 2979190816 45056 /usr/bin/df Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_6587 PHCO_13981 Equivalent Patches: PHCO_22276: s700: 11.00 s800: 11.00 PHCO_22275: s700: 10.20 s800: 10.20 PHCO_22503: s700: 10.01 s800: 10.01 Patch Package Size: 100 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_22504 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_22504.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_22504. 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_22504.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_22504.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None