[Bug 7736] New: patch ORIGFILE PATCHFILE uses the wrong file path

bugzilla at busybox.net bugzilla at busybox.net
Sun Dec 21 18:43:36 UTC 2014


https://bugs.busybox.net/show_bug.cgi?id=7736

           Summary: patch ORIGFILE PATCHFILE uses the wrong file path
           Product: Busybox
           Version: 1.22.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: Andreas.Klauer at metamorpher.de
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


I'm trying to patch a file in a subdir. According to busybox patch --help this
syntax should be supported, but it does not work...

Expected behaviour:

$ patch subdir/a some.patch
patching file subdir/a

But BusyBox ignores the subdir completely:

$ busybox patch subdir/a some.patch
patching file a
patch: can't open 'a': No such file or directory

If a file exists in the current dir, it tries to patch that instead:

$ touch a
$ busybox patch subdir/a some.patch
patching file a
Hunk 1 FAILED 1/1.
-foobar
+barfoo

Even if it succeeds, subdir/a remains unpatched.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list