CVSROOT: /cvs Module name: src Changes by: k...@cvs.openbsd.org 2015/07/31 12:21:58
Modified files: usr.bin/patch : Tag: OPENBSD_5_6 pch.c Log message: Backport rev 1.53 by millert: Account for newlines in substitution (s///) commands. Substitution commands might contain a newline in the replacement pattern (escaped with a backslash before it), causing patch's understanding of the state the ed child process is in to diverge from reality. This can lead to patch unwillingly feeding '!' (execute shell command) lines to ed. From Martin Natano. OK deraadt@