1
0
Fork 0
mirror of git://git.savannah.gnu.org/patch.git synced 2025-12-05 22:28:43 +00:00
No description
Find a file
Daniel Black d161c9a9db Skip read-only check when output file specified
Only check if input files are read-only when overwriting them; skip
that check when the output goes to a different file.

* src/patch.c (main): Set read_only_behavior to RO_IGNORE when an output
file has been specified.
* tests/read-only-files: Add test case.
2025-05-01 13:40:20 +02:00
gnulib@9829f0a93c build: update gnulib submodule to latest 2025-02-06 21:02:41 +01:00
m4 maint: make update-copyright 2025-01-05 13:33:00 -08:00
pc maint: arrange for the sc_require_config_h_first test to pass 2011-03-26 14:20:28 +01:00
src Skip read-only check when output file specified 2025-05-01 13:40:20 +02:00
tests Skip read-only check when output file specified 2025-05-01 13:40:20 +02:00
.gitattributes Improve ‘git diff’ output if desired 2024-08-28 23:13:44 -07:00
.gitignore maint: simplify .gitignore 2024-08-25 18:14:30 -07:00
.gitmodules Convert to automake and use a git submodule for gnulib 2010-04-12 16:27:55 +02:00
AUTHORS Copyright notice updates 2009-04-05 21:12:30 +02:00
bootstrap maint: update bootstrap from gnulib 2025-01-05 13:33:00 -08:00
bootstrap.conf Declare an expected test failure on Haiku. 2025-02-06 21:03:10 +01:00
cfg.mk Fix 'make release' for proper releases 2025-03-29 22:40:26 +01:00
ChangeLog-2011 maint: make update-copyright 2025-01-05 13:33:00 -08:00
configure.ac maint: make update-copyright 2025-01-05 13:33:00 -08:00
COPYING Update to GPL version 3, add diffseq.h and minmax.h from Gnulib 2009-04-02 06:34:45 +02:00
Makefile.am maint: make update-copyright 2025-01-05 13:33:00 -08:00
NEWS Fix 'make release' for proper releases 2025-03-29 22:40:26 +01:00
patch.man maint: make update-copyright 2025-01-05 13:33:00 -08:00
README maint: make update-copyright 2025-01-05 13:33:00 -08:00
README-alpha Add README-alpha automatically when appropriate 2009-03-22 13:37:06 +01:00
README-hacking maint: make update-copyright 2025-01-05 13:33:00 -08:00
README-prereq Update NEWS, README-prereq 2024-08-28 23:13:44 -07:00

This is GNU patch, which applies diff files to original files.

This version of patch has many changes made by the Free Software Foundation.
They add support for:
 * handling arbitrary binary data and large files
 * the unified context diff format that GNU diff can produce
 * merging into files instead of creating reject files
 * making GNU Emacs-style backup files
 * improved interaction with RCS and SCCS
 * the GNU conventions for option parsing and configuring and compilation.
 * better POSIX compliance
They also fix some bugs.

If you obtained this file as part of a "git clone", then see the
README-hacking file.  If this file came to you as part of a tar archive,
then see the file INSTALL for compilation and installation instructions.

See the file NEWS for a list of major changes in the current release.
A more detailed description of all changes can be found in the file ChangeLog
in tar archives, and with "git log" which shows the version control history.

Tutorial-style documentation for patch is included in the GNU
Diffutils package; get GNU Diffutils 2.8 or later for up-to-date
documentation for patch.

Use `configure --disable-largefile' to disable large file support;
this is reportedly necessary on Red Hat GNU/Linux 6.0 to avoid a C library bug.
For MS-DOS using DJGPP tools, see the file pc/djgpp/README.
For other systems, copy config.hin to config.h and change
#undef statements in it to #define as appropriate for your system,
and copy Makefile.in to Makefile and set the variables that are
enclosed in @ signs as appropriate for your system.

Please send bug reports for this version of patch to
<bug-patch@gnu.org>.

The Free Software Foundation is distributing this version of patch
independently because as of this writing, Larry Wall has not released a
new version of patch since mid-1988.  We have heard that he has been
too busy working on other things, like Perl.  He has graciously agreed
to let GNU `patch' be distributed under the terms of the GNU General
Public License.

For any copyright year range specified as YYYY-ZZZZ in this package
note that the range specifies every single year in that closed interval.

Please see the file COPYING for copying conditions.

------

Copyright 1989-2025 Free Software Foundation, Inc.
Copyright 1984-1988 Larry Wall

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.