diff options
author | 2017-05-30 06:55:40 +0000 | |
---|---|---|
committer | 2017-05-30 06:55:40 +0000 | |
commit | c82b07be71cfe981278e978d12e5cab728feab31 (patch) | |
tree | 0f70b12470f366cb6c9453bc30412ff246656575 /usr.bin/patch | |
parent | Clear the internal table used by if_get(9) and sleep until all (diff) | |
download | wireguard-openbsd-c82b07be71cfe981278e978d12e5cab728feab31.tar.xz wireguard-openbsd-c82b07be71cfe981278e978d12e5cab728feab31.zip |
Unbreak previous for git diffs that do not have the a/ prefix.
Found the hard way be me, OK tedu
Diffstat (limited to 'usr.bin/patch')
-rw-r--r-- | usr.bin/patch/pch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/pch.c b/usr.bin/patch/pch.c index 4cd2073c6c6..cc9047cfa8c 100644 --- a/usr.bin/patch/pch.c +++ b/usr.bin/patch/pch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pch.c,v 1.57 2017/05/26 20:27:02 tedu Exp $ */ +/* $OpenBSD: pch.c,v 1.58 2017/05/30 06:55:40 florian Exp $ */ /* * patch - a program to apply diffs to original files @@ -327,7 +327,7 @@ intuit_diff_type(void) free(revision); revision = NULL; } - } else if (strnEQ(s, "diff --git ", 11)) + } else if (strnEQ(s, "diff --git a/", 13)) piece_of_git = 1; if ((!diff_type || diff_type == ED_DIFF) && first_command_line >= 0 && |