Patch Name: PHCO_1502 Patch Description: Fix for grep bugs which cause it to miss patterns. The 8.07 MR /bin/grep has three bugs that cause it to miss patterns in the input file. The bugs are particularly visible when the -f option is used to specify a file containing the patterns to search for. The bugs may also show up when the -x option is used (with or without the -f option). This patch contains a new /bin/grep that should be installed and linked to /bin/egrep and /bin/fgrep. For the more detailed oriented users the new revision fixed 3 problems: 1. Added calls to bzero() because the program was relying on malloc buffers to be zero-filled. 2. Fixed code which was counting the number of '|' characters; the old code just did not work (used to be a call to strchr). 3. Fixed code which was malloc'ing a line buf; we needed 3 more bytes to hold beginning characters plus the termnating null character. Path Name: /hp-ux_patches/s700/8.X/PHCO_1502 Effective Date: 921016 Patch Files: /bin/grep SR#: None "what" string/timestamp: /bin/grep: $Revision: 70.6.1.1 $ PATCH_8_07: grep.o 92/10/16 "sum" output: 43549 56 /bin/grep Dependencies: None. Supersedes: None. Patch Package Size: 62 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. Note: Please back up your system before you patch. --------------------------------------------------------------------------- After getting the patch onto your machine, unshar the patch (sh PHCO_1502). To install this patch do the following: 1) Run /etc/update (Note: you must be logged in as root to update a system). 2) Once in the update "Main Menu" move the highlighted line to "Change Source or Destination ->" and press "Return" or "Select Item". 3) Make sure the highlighted item in the "Change Source or Destination" window is "From Tape Device to Local System ...", then press "Return" or "Select Item". 4) You should now be in the "From Tape Device to Local System" window. Change the "Source: /dev/rmt/0m" to "Source: /tmp/PHCO_1502.updt" (this assumes that you are in the /tmp directory where PHCO_1502.updt has been placed). Note: You must enter the complete path name. 5) Press "Done". 6) From here on follow the standard directions for update. The customized script that update runs will move the original software to /system/PHCO_1502/orig. HP recommends keeping this software there in order to recover from any potential problems. It is also recommended that you move the PHCO_1502.text file to /system/PHCO_1502 to be retained for future reference. If you wish to put this patch on a magnetic tape and update from the tape drive, dd a copy of the patch to the tape drive. As an example the following will create a copy of the patch that update can read: dd if=PHCO_1502.updt of=/dev/rmt/0m bs=2048