Red Hat Bugzilla – Bug 150043
patch can't handle spaces in paths in patches
Last modified: 2008-06-16 05:19:23 EDT
Description of problem:
patch can't figure out the filename to patch when the path in the patch contains
a space character.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Try to patch a file with a patch containing spaces in the path, for example:
--- Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java 28 Feb 2005
21:41:29 -0000 1.53
+++ Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java 1 Mar 2005
No matter what number is passed to -p, I get:
missing header for unified diff at line 37 of patch
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.