# Copyright (C) 2009 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. # Patch must not overwrite backup files it has created itself. . $srcdir/test-lib.sh require_cat require_diff use_local_patch use_tmpdir # ============================================================== echo one > f cat > f.diff < f ln f g cat > fg.diff < f.diff < f chmod a=r f check 'patch -p0 < f.diff' <