IBM Support

IV51338: PATCH -U DOES NOT PROCESS THE 2ND HUNK OF PATCHFILE APPLIES TO AIX 7100-03

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • # patch -b -up1 -i ../patch_u.diff
    Processing...  Looks like a unified context diff...
    The text leading up to this was:
    --------------------------
    |diff -u before/samp.h after/samp.h
    |--- before/samp.h   2013-08-12 04:25:05.000000000 -0500
    |+++ after/samp.h   2013-08-08 21:26:13.000000000 -0500
    --------------------------
    Patching file samp.h using Plan A...
    Hunk #1 succeeded at 35.
    Processing...  Ignoring the trailing text.    <== wrong
    done
    

Local fix

  • Use patch -c as a workaround.
    

Problem summary

  • When using a unified context diff file as an input to the patch
    command to patch differences in a file, and there are more
    than one hunks present in the diff file. Then the patch command
    might not process all the hunks.
    

Problem conclusion

  • Modify loop termination condition to ensure context diff
    hunk read processing contained.
    

Temporary fix

Comments

  • 6100-07 - use AIX APAR IV47674
    6100-08 - use AIX APAR IV57803
    6100-09 - use AIX APAR IV51193
    6100-09 - use AIX APAR IV51193
    6100-09 - use AIX APAR IV51193
    7100-01 - use AIX APAR IV57501
    7100-02 - use AIX APAR IV56949
    7100-03 - use AIX APAR IV51338
    

APAR Information

  • APAR number

    IV51338

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2013-10-24

  • Closed date

    2013-10-24

  • Last modified date

    2014-08-14

  • APAR is sysrouted FROM one or more of the following:

    IV47674

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U859733

       UP14/05/22 I 1000

PTF to Fileset Mapping



Document information

More support for: AIX Enterprise Edition

Software version: 710

Operating system(s): AIX

Reference #: IV51338

Modified date: 14 August 2014