# Copyright (C) 2009, 2011-2012 Free Software Foundation, Inc. # # Copying and distribution of this file, with or without modification, # in any medium, are permitted without royalty provided the copyright # notice and this notice are preserved. . $srcdir/test-lib.sh require cat use_local_patch use_tmpdir # ============================================================== # Bug #25969: Patch replaces unmodified files # # When a patch doesn't actually modify a file (i.e., only rejects), # the file is still replaced. cat > a.diff < a ln a a.first check 'patch -b -B backup/ a < a.diff || echo "Status: $?"' < a.diff < a check 'patch -o b a < a.diff' <