Patch Name: PHCO_26897 Patch Description: s700_800 11.00 cumulative compress(1) patch Creation Date: 02/06/04 Post Date: 02/06/18 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: defect_repair enhancement general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_26897 Symptoms: PHCO_26897: 1. compress(1) command exits with an error message "toolong: Value too large to be stored in data type" for large files in certain cases. 2. compress(1) with -c option does not return correct value when the resultant output is larger than input. PHCO_20036: 1. Enhancements to compress(1) to function with JFS ACLs. Defect Description: PHCO_26897: 1. The command "compress -f " exits with an error message if all the following cases occur simultaneously: a) .Z exists in the same directory b) File name length of .Z is more than 14 characters. c) The size of .Z is more than 2GB. The error message is "toolong: Value too large to be stored in data type" Eg: $ wc -c loooong_file_name* 33030144 loooong_file_name 2150809073 loooong_file_name.Z $ /usr/bin/compress -f loooong_file_name toolong: Value too large to be stored in data type loooong_file_name: filename too long to tack on .Z Resolution: compress(1) command was using 32 bit stat(2) call which fails with EOVERFLOW when invoked on large files. Now, the compress(1) command is modified to use the 64bit version of stat(2). 2. compress(1) command when used with -c option, does not recognize the situation where output is larger than input data and doesn't set return value to 2 as documented in man page Eg: $ wc -c infile 3 infile #compress -c infile > outfile #echo $? 0 $ wc -c outfile 7 outfile Resolution: The compress(1) command has been modified to return the appropriate value when the output is larger than input. PHCO_20036: 1. Enhancements to compress(1) to function with JFS ACLs. SR: 8606239778 8606143618 5003311746 1653249284 Patch Files: OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lib/nls/msg/C/compress.cat /usr/bin/compress /usr/bin/compressdir /usr/bin/uncompress /usr/bin/uncompressdir /usr/bin/zcat /usr/bin/zcmp /usr/bin/zdiff what(1) Output: OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lib/nls/msg/C/compress.cat: None OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/compress: $Revision: 82.1.1.4 $ PATCH_11_00: compress.o 02/06/04 OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/compressdir: $Revision: 72.1 $ OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/uncompress: $Revision: 82.1.1.4 $ PATCH_11_00: compress.o 02/06/04 OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/uncompressdir: $Revision: 72.1 $ OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/zcat: $Revision: 82.1.1.4 $ PATCH_11_00: compress.o 02/06/04 OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/zcmp: $Revision: 72.1 $ OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/zdiff: $Revision: 72.1.1.1 $ cksum(1) Output: OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2355029569 937 /usr/lib/nls/msg/C/compress.cat OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2858732797 32768 /usr/bin/compress OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 1869369953 316 /usr/bin/compressdir OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2858732797 32768 /usr/bin/uncompress OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2768026772 319 /usr/bin/uncompressdir OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2858732797 32768 /usr/bin/zcat OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2052983510 806 /usr/bin/zcmp OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2043154458 812 /usr/bin/zdiff 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_20036 Equivalent Patches: PHCO_26898: s700: 11.11 s800: 11.11 Patch Package Size: 70 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_26897 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_26897.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_26897. 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_26897.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_26897.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_26897.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None