]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs_apply: filterdiff can't handle /dev/null properly
authorDave Chinner <david@fromorbit.com>
Mon, 24 Oct 2016 22:52:21 +0000 (09:52 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 24 Oct 2016 22:52:21 +0000 (09:52 +1100)
commitae11d3088dd73df1000855102ef90177d102dd52
tree40612abce11ce0a20f2e34c3e3492742a934633f
parent1516533c8c836d69eb4381332fe3cacb02e025c9
libxfs_apply: filterdiff can't handle /dev/null properly

Because we are mangling the diff source/destination locations, we
have to add prefixes to them to get them to apply cleanly as -p1
patches. This is all fine until we create or remove a file and
the the src/dest is /dev/null. Applying a prefix here causes
the diff to be malformed and it won't apply.

Add another hack to work around this limitation of filterdiff when
reformatting the diff into readable format.

Signed-off-by: Dave Chinner <david@fromorbit.com>
tools/libxfs-apply