Description of problem: the long option parsing for the -g --get option incorrectly states it take no parameter. Version-Release number of selected component (if applicable): patch-2.5.4-29.2.3.el5 How reproducible: always Steps to Reproduce: 1. patch --get 1 2. 3. Actual results: $ patch --get Segmentation fault $ patch --get 1 Segmentation fault Expected results: $ patch --get patch: option `--get' requires an argument patch: Try `./patch-2.5.4/patch --help' for more information. Additional info: The fix is simply to change the parameter option for 'get' in the longopts in patch.c from no_argument to required_argument. This bug is also present in the current upstream source.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: The "-g" option was not handled correctly by the patch command. This has been fixed.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0656.html