File patch.changes of Package patch
592
1
-------------------------------------------------------------------
2
Tue Jul 30 12:19:54 UTC 2024 - Wolfgang Frisch <wolfgang.frisch@suse.com>
3
4
- CVE-2019-20633.patch: Fix double-free/OOB read in pch.c (bsc#1167721)
5
6
-------------------------------------------------------------------
7
Tue May 10 16:41:54 UTC 2022 - Jean Delvare <jdelvare@suse.de>
8
9
- fix-swapping-fake-lines-in-pch_swap.patch: Fix swapping fake
10
lines in pch_swap. This bug was causing a double free leading to
11
a crash (boo#1080985 CVE-2018-6952).
12
- abort-when-cleaning-up-fails.patch: Abort when cleaning up fails.
13
This bug could cause an infinite loop when a patch wouldn't
14
apply, leading to a segmentation fault (boo#1111572).
15
- dont-follow-symlinks-unless-asked.patch: Don't follow symlinks
16
unless --follow-symlinks is given. This increases the security
17
against malicious patches (boo#1142041 CVE-2019-13636).
18
- pass-the-correct-stat-to-backup-files.patch: Pass the correct
19
stat to backup files. This bug would occasionally cause backup
20
files to be missing when all hunks failed to apply (boo#1198106).
21
22
-------------------------------------------------------------------
23
Wed May 9 09:52:04 UTC 2018 - jdelvare@suse.de
24
25
- ed-style-07-dont-leak-tmp-file.patch,
26
ed-style-08-dont-leak-tmp-file-multi.patch: Fix temporary file
27
leak when applying ed-style patches (bsc#1092500,
28
savannah#53820).
29
30
-------------------------------------------------------------------
31
Wed Apr 18 11:16:34 CEST 2018 - jdelvare@suse.de
32
33
- Add ed as BuildRequires so ed-style patches can be checked by
34
the test suite.
35
36
-------------------------------------------------------------------
37
Wed Apr 18 08:53:00 UTC 2018 - jdelvare@suse.de
38
39
Fix CVE-2018-1000156 (bsc#1088420, savannah#53566).
40
- ed-style-01-missing-input-files.patch: Allow input files to be
41
missing for ed-style patches.
42
- ed-style-02-fix-arbitrary-command-execution.patch,
43
ed-style-03-update-test-Makefile.patch: Fix arbitrary command
44
execution in ed-style patches.
45
- ed-style-04-invoke-ed-directly.patch: Invoke ed directly instead
46
of using the shell.
47
- ed-style-05-minor-cleanups.patch: Minor cleanups in do_ed_script.
48
- ed-style-06-fix-test-failure.patch: Fix 'ed-style' test failure.
49
50
-------------------------------------------------------------------
51
Thu Mar 22 09:43:43 CET 2018 - jdelvare@suse.de
52
53
- Move COPYING from %doc to %license.
54
55
-------------------------------------------------------------------
56
Wed Mar 21 16:44:09 CET 2018 - jdelvare@suse.de
57
58
- Add AUTHORS and COPYING to %doc.
59
- fix-segfault-mangled-rename.patch: Fix segfault with mangled
60
rename patch (bsc#1080951, CVE-2018-6951, savannah#53132).
61
62
-------------------------------------------------------------------
63
Wed Feb 7 18:43:51 UTC 2018 - astieger@suse.com
64
65
- patch 2.7.6:
66
* Files specified on the command line are no longer verified to
67
be inside the current working directory, so commands like
68
"patch -i foo.diff ../foo" will work again
69
* Fixes CVE-2016-10713 (Out-of-bounds access within
70
pch_write_line() in pch.c could possibly lead to DoS via a
71
crafted input file; bsc#1080918)
72
* Various fixes
73
74
-------------------------------------------------------------------
75
Sat Mar 7 10:42:46 CET 2015 - jdelvare@suse.de
76
77
- patch 2.7.5
78
Fixes a functional regression introduced by the previous update.
79
+ Patching through symbolic links works again, as long as the
80
target is within the working tree.
81
82
-------------------------------------------------------------------
83
Mon Feb 16 11:51:58 CET 2015 - jdelvare@suse.de
84
85
- patch 2.7.4
86
Fixes a functional regression introduced by the previous security
87
fix. The security fix would forbid legitimate use cases of
88
relative symbolic links.
89
[boo#918058]
90
+ Allow arbitrary symlink targets again.
91
+ Do not change permissions if there isn't an explicit mode
92
change.
93
+ Fix indentation heuristic for context diffs.
94
- Please also note that the previous update fixed security bugs
95
boo#915328 and boo#915329 even though it did not say so.
96
97
-------------------------------------------------------------------
98
Fri Jan 23 00:58:35 UTC 2015 - andreas.stieger@gmx.de
99
100
- patch 2.7.3
101
Contains a security fix for a directory traversal flaw when
102
handling git-style patches. This could allow an attacker to
103
overwrite arbitrary files by applying a specially crafted patch.
104
[boo#913678] [CVE-2015-1196]
105
+ With git-style patches, symlinks that point outside the working
106
directory will no longer be created (CVE-2015-1196).
107
+ When a file isn't being deleted because the file contents don't
108
match the patch, the resulting message is now "Not deleting
109
file ... as content differs from patch" instead of "File ...
110
is not empty after patch; not deleting".
111
+ Function names in hunks (from diff -p) are now preserved in
112
reject files
113
This change was previously added as a patch. [boo#904519]
114
- Version 2.7.2 differed from the above only slightly.
115
- packaging changes:
116
+ Verify source signatures
117
+ Removed patches now upstream:
118
* error-report-crash.patch
119
* reject-print-function-01-drop-useless-test.patch
120
* reject-print-function-02-handle-unified-format.patch
121
+ run spec-cleaner
122
123
-------------------------------------------------------------------
124
Mon Nov 10 11:37:03 CET 2014 - jdelvare@suse.de
125
126
- reject-print-function-01-drop-useless-test.patch: Drop useless
127
test in another_hunk().
128
- reject-print-function-02-handle-unified-format.patch: Preserve C
129
function name in unified rejects (bnc#904519).
130
131
-------------------------------------------------------------------
132
Tue May 20 07:44:03 UTC 2014 - schwab@suse.de
133
134
- error-report-crash.patch: fix crash after reporting error during option
135
parsing
136
137
-------------------------------------------------------------------
138
Thu Dec 6 16:19:25 CET 2012 - jdelvare@suse.de
139
140
- Back to bz2 archive format as old products lack xz.
141
142
-------------------------------------------------------------------
143
Thu Dec 6 15:34:14 CET 2012 - jdelvare@suse.de
144
145
- Version 2.7.1
146
+ Patch no longer gets a failed assertion for certain mangled
147
patches.
148
+ Ignore destination file names that are absolute or that contain
149
a component of "..", except when working in the root directory.
150
This addresses CVE-2010-4651.
151
+ Support for most features of the "diff --git" format, including
152
renames and copies, permission changes, and symlink diffs.
153
Binary diffs are not supported yet; patch will complain and
154
skip them.
155
+ Support for double-quoted filenames: when a filename starts
156
with a double quote, it is interpreted as a C string literal.
157
The escape sequences \\, \", \a, \b, \f, \n, \r, \t, \v, and
158
\ooo (a three-digit octal number between 0 and 255) are
159
recognized.
160
+ Refuse to apply a normal patch to a symlink. (Previous versions
161
of patch were replacing the symlink with a regular file.)
162
+ New --follow-symlinks option to allow to treat symlinks as
163
files: this was patch's behavior before version 2.7.
164
+ When trying to modify a read-only file, warn about the
165
potential problem by default. The --read-only command line
166
option allows to change this behavior.
167
+ Files to be deleted are deleted once the entire input has been
168
processed, not immediately. This fixes a bug with numbered
169
backup files.
170
+ When a timestamp specifies a time zone, honor that instead of
171
assuming the local time zone (--set-date) or Universal
172
Coordinated Time (--set-utc).
173
+ Support for nanosecond precision timestamps.
174
+ Many bug fixes.
175
+ Clarify the message printed when a patch is expected to empty
176
out and delete a file, but the file does not become empty.
177
+ Various improvements to messages when applying a patch to a
178
file of different type (regular file vs. symlink), when there
179
are line ending differences (LF vs. CRLF), and when in
180
--dry-run mode.
181
+ Ignore when extended attributes cannot be preserved because
182
they are unsupported or because permission to set them is
183
denied.
184
- patch-revert-e0f70752.patch: Dropped, original bug fixed
185
upstream.
186
- patch-stdio.in.patch: Dropped, merged upstream.
187
188
-------------------------------------------------------------------
189
Tue Jul 17 08:40:27 UTC 2012 - aj@suse.de
190
191
- patch-stdio.in.patch:
192
Fix build with missing gets declaration (glibc 2.16)
193
194
-------------------------------------------------------------------
195
Fri Apr 6 14:22:12 CEST 2012 - jdelvare@suse.de
196
197
- patch-revert-e0f70752.patch: Revert broken upstream commit
198
(bnc#755136).
199
200
-------------------------------------------------------------------
201
Wed Apr 4 19:03:25 CEST 2012 - jdelvare@suse.de
202
203
- Version 2.6.1.136
204
205
-------------------------------------------------------------------
206
Wed Oct 5 12:33:53 UTC 2011 - uli@suse.com
207
208
- cross-build fix: use %configure macro
209
210
-------------------------------------------------------------------
211
Mon Apr 4 15:11:04 CEST 2011 - jdelvare@suse.de
212
213
- Version 2.6.1.116:
214
+ Patch now ignores destination file names that are absolute or
215
that contain a component of ".." (CVE-2010-4651, bnc#662957).
216
- Drop unified-reject-files-compat.diff. Compatibility has been
217
provided for the past 18 months, hopefully nobody is relying on
218
it any longer.
219
220
-------------------------------------------------------------------
221
Fri Jul 2 06:57:49 UTC 2010 - jengelh@medozas.de
222
223
- Use %_smp_mflags
224
225
-------------------------------------------------------------------
226
Wed May 5 01:28:12 CEST 2010 - agruen@suse.de
227
228
- Version 2.6.1.81:
229
+ Fix backup file detection for deleted files
230
+ Allow to create and delete empty files
231
+ Stick to the best name in the reversed-patch check
232
+ Various portability improvements
233
234
-------------------------------------------------------------------
235
Sun May 2 15:57:54 CEST 2010 - agruen@suse.de
236
237
- Fix the linker library order.
238
239
-------------------------------------------------------------------
240
Sun May 2 14:40:09 CEST 2010 - agruen@suse.de
241
242
- Be more verbose when %verbose is defined.
243
244
-------------------------------------------------------------------
245
Sun May 2 14:01:47 CEST 2010 - agruen@suse.de
246
247
- Version 2.6.1.64:
248
+ Support for most features of the "diff --git" format: renames
249
and copies, permission changes, symlink diffs. (Binary diffs
250
are not supported yet; patch will complain and skip them.)
251
+ Support for double-quoted filenames: when a filename in a
252
context diff starts with a double quote, it is interpreted as
253
a C string literal. The escape sequences \\, \", \a, \b, \f, \n,
254
\r, \t, \v, and \ooo (a three-digit octal number between 0 and
255
255) are recognized.
256
+ Refuse to patch read-only files by default, or at least warn
257
when patching such files with --force or --batch.
258
+ Refuse to apply a normal patch to a symlink. (Previous
259
versions of patch were wrongly replacing the symlink with a
260
regular file.)
261
+ When a timestamp specifies a time zone, honor that instead of
262
assuming the local time zone (--set-date) or Universal
263
Coordinated Time (--set-utc).
264
+ Support for nanosecond precision timestamps.
265
+ Many portability and bug fixes.
266
267
-------------------------------------------------------------------
268
Sun Jan 31 16:22:05 CET 2010 - agruen@suse.de
269
270
- Version 2.6.1.9:
271
+ Skip another ed-dependent test when ed isn't installed.
272
+ More portability fixes.
273
-------------------------------------------------------------------
274
Wed Dec 30 17:14:24 CET 2009 - agruen@suse.de
275
276
- Version 2.6.1:
277
+ Support for diff3(1) style merges which show the old, original,
278
and new lines of a conflict has been added (--merge=diff3).
279
The default still is the merge(1) format (--merge or
280
--merge=merge).
281
+ Bug and portability fixes.
282
283
-------------------------------------------------------------------
284
Sun Dec 6 17:32:57 CET 2009 - jengelh
285
286
- enable parallel building
287
288
-------------------------------------------------------------------
289
Fri Nov 13 15:45:06 CET 2009 - agruen@suse.de
290
291
- Version 2.6.
292
293
-------------------------------------------------------------------
294
Mon Sep 7 13:30:46 CEST 2009 - agruen@suse.de
295
296
- Version 2.5.9.122:
297
+ Try to preserve the owning group of patched files.
298
- Add --unified-reject-files backwards-compatibility patch to
299
older SUSE versions of patch.
300
301
-------------------------------------------------------------------
302
Mon Jul 20 10:12:48 CEST 2009 - agruen@suse.de
303
304
- Version 2.5.9.120:
305
+ When copying files, use full_write() from gnulib instead of
306
write().
307
+ The -m option hasn't been officially allocated yet. Use only
308
the long form for now (--merge).
309
310
-------------------------------------------------------------------
311
Fri Jun 19 08:33:32 CEST 2009 - agruen@suse.de
312
313
- Version 2.5.9.118:
314
+ Change the default value of PATCH_GET to 0.
315
+ When merging, make sure that hunks will not end up "out of order"
316
+ When the file to patch is specified on the command line,
317
apply all patches to that file
318
+ Some portability fixes/improvements
319
+ Don't fail when removing nonexistent files in move_file
320
321
-------------------------------------------------------------------
322
Wed Apr 8 16:47:49 CEST 2009 - agruen@suse.de
323
324
- Version 2.5.9.109:
325
+ Preserve timestamps in reject files.
326
+ Add support for sending output to standard output.
327
+ Allow special characters in filenames read interactively.
328
+ Don't forget to NUL terminate ptimestr in fetchname().
329
330
-------------------------------------------------------------------
331
Tue Apr 7 14:29:16 CEST 2009 - agruen@suse.de
332
333
- Version 2.5.9.104: timestamp parsing fix, 64-bit fix.
334
335
-------------------------------------------------------------------
336
Mon Apr 6 18:59:55 CEST 2009 - agruen@suse.de
337
338
- Version 2.5.9.97: Another bugfix.
339
340
-------------------------------------------------------------------
341
Mon Apr 6 15:04:50 CEST 2009 - agruen@suse.de
342
343
- Version 2.5.9.95: Gnulib update, bug fixes.
344
345
-------------------------------------------------------------------
346
Fri Apr 3 22:35:33 CEST 2009 - agruen@suse.de
347
348
- Update to version patch-2.5.9.77: updated manpage and NEWS, no
349
strict depenency on ed in the test suite anymore, and slightly
350
improved handling of asymmetric hunks.
351
352
-------------------------------------------------------------------
353
Thu Apr 2 16:21:14 CEST 2009 - agruen@suse.de
354
355
- Update to version patch-2.5.9.69 which has all our patches
356
merged in one form or anther, along with many other fixes and
357
improvements (see NEWS).
358
359
-------------------------------------------------------------------
360
Tue Feb 24 12:56:06 CET 2009 - agruen@suse.de
361
362
- Include patch headers in reject files so that they form proper
363
patches themselves.
364
- Rewrite the unified reject files patch; this is much cleaner
365
now.
366
- Add an improved strategy for locating merges.
367
368
-------------------------------------------------------------------
369
Tue Feb 3 06:10:49 CET 2009 - agruen@suse.de
370
371
- Implement diff3-style merges (including several fixes and
372
improvements).
373
374
-------------------------------------------------------------------
375
Wed Apr 23 10:53:19 CEST 2008 - agruen@suse.de
376
377
- remember-backup-files.diff: Fix bug when a file is touched by
378
the same patch more than twice. Move the test cases from the
379
patch header into separate files.
380
- patch-2.5.9-cat_if_device.diff: No need to remember the device
381
we write to as a backup file.
382
383
-------------------------------------------------------------------
384
Fri Nov 2 01:57:03 CET 2007 - agruen@suse.de
385
386
- Patch fails to apply hunks with asymmetric context correctly.
387
388
-------------------------------------------------------------------
389
Wed Jan 25 21:30:47 CET 2006 - mls@suse.de
390
391
- converted neededforbuild to BuildRequires
392
393
-------------------------------------------------------------------
394
Thu Jan 12 07:52:31 CET 2006 - agruen@suse.de
395
396
- remember-backup-files.diff: Fix case where a patch modifies a
397
read-only file more than once while --backup is used (test case
398
in the patch header).
399
400
-------------------------------------------------------------------
401
Thu Aug 18 18:09:59 CEST 2005 - mmj@suse.de
402
403
- --reject-unified is called --unified-reject-files [#105151]
404
405
-------------------------------------------------------------------
406
Wed Jun 29 13:50:06 CEST 2005 - mmj@suse.de
407
408
- Don't compile with -f-signed-char [#93883]
409
- Don't strip explicitly
410
411
-------------------------------------------------------------------
412
Tue Jan 4 21:11:54 CET 2005 - mmj@suse.de
413
414
- Add patch to make patch able to write reject files to devices,
415
named pipes and sockets [#45794]
416
417
-------------------------------------------------------------------
418
Sat Jan 25 02:30:00 CET 2004 - agruen@suse.de
419
420
- Add --reject-unified option to produce unified reject files:
421
Before, unified reject files were produced if the patch itself
422
was unified; this could sometimes have been annoying.
423
- If a patch with C function names (diff -p) has rejects, include
424
the function names in the reject files.
425
426
-------------------------------------------------------------------
427
Sun Jan 11 11:17:55 CET 2004 - adrian@suse.de
428
429
- add %defattr
430
431
-------------------------------------------------------------------
432
Tue Oct 7 15:03:22 CEST 2003 - agruen@suse.de
433
434
- remember-backup-files: Also include the file timestamps in the
435
hash table for non-POSIX-compliant systems that don't guarantee
436
that i_dev + i_ino uniquely identifies a file.
437
- #32031: Create --global-reject-file even if --dry-run is
438
specified. Add a missing '\n'.
439
440
-------------------------------------------------------------------
441
Wed Jul 16 15:21:44 CEST 2003 - agruen@suse.de
442
443
- Replace trailing-cr-fix.diff with official upstream version that
444
fixes this bug differently.
445
446
-------------------------------------------------------------------
447
Mon Jun 30 13:30:33 CEST 2003 - agruen@suse.de
448
449
- trailing-cr-fix.diff: Fix a bug in carriage return detection
450
(DOS files) in the unified diff path.
451
- Disable patch that adds comments to C preprocessor style
452
merges, as specified by POSIX.1-2001.
453
454
-------------------------------------------------------------------
455
Wed Jun 25 16:46:41 CEST 2003 - agruen@suse.de
456
457
- Fix bug introduced on June 5 that broke remember-backup-files.
458
459
-------------------------------------------------------------------
460
Tue Jun 24 17:35:09 CEST 2003 - agruen@suse.de
461
462
- smart-reject-file-format.diff: Work around a special case in
463
which patches are not terminated with a '^' in the internal
464
representation. The resulting error message was "internal error
465
in abort_hunk".
466
467
-------------------------------------------------------------------
468
Thu Jun 5 09:38:17 CEST 2003 - agruen@suse.de
469
470
- Temporary reject file logic: Ooops, now must only close the
471
temporary reject file after processing all patches, instead of
472
after each patch.
473
474
-------------------------------------------------------------------
475
Thu Jun 5 01:00:38 CEST 2003 - agruen@suse.de
476
477
- Upgrade to 2.5.9: Several fixes, obsoletes
478
rename-same-file.patch.
479
- Fix and adapt global-reject-file patch:
480
+ The global reject file included corrupted headers for each
481
rejected hunk, instead of one header for each file with
482
rejects.
483
+ Rename --global-reject to --global-reject-file.
484
+ Simplify temporary reject file logic.
485
+ Adapt to unified-reject-files patch (which has different
486
headers).
487
+ Add entry in man page.
488
- Fix a bug in smart-reject-file-format: Files that are created
489
are identified by `-0,0'; before the patch was generating
490
`-1,0' in reject files.
491
- Switch remember-backup-files.diff over to use gnulib's hash
492
tables instead of glibc's binary trees, requested from upstream
493
to ensure greater portability.
494
- Add /* SYM */ comment to #endif lines for patch -D SYM, too.
495
496
-------------------------------------------------------------------
497
Wed Apr 9 19:33:59 CEST 2003 - agruen@suse.de
498
499
- Fix another bug with hard links and backup file generation.
500
- Fix backup file generation if the same file appears in the
501
patch more than once.
502
503
-------------------------------------------------------------------
504
Wed Mar 26 14:00:55 CET 2003 - mmj@suse.de
505
506
- Update to 2.5.8:
507
+ Bugfixes
508
+ patch -D now outputs preprocessor lines without comments, as
509
required by POSIX 1003.1-2001
510
+ File names in context patches may now contain spaces, so long
511
as the context patch headers use a tab to separate the file name
512
from the time stamp
513
+ Perforce is now supported
514
+ Patch lines beginning with "#" are comments and are ignored
515
516
-------------------------------------------------------------------
517
Wed Jan 15 16:50:57 CET 2003 - agruen@suse.de
518
519
- Fix a bug with hardlinks (see rename-same-file.patch)
520
521
-------------------------------------------------------------------
522
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
523
524
- removed bogus self-provides
525
526
-------------------------------------------------------------------
527
Wed Feb 6 12:05:34 CET 2002 - coolo@suse.de
528
529
- called suse_update_config
530
531
-------------------------------------------------------------------
532
Mon Jun 25 12:46:18 CEST 2001 - uli@suse.de
533
534
- added patch adding "--global-reject" option by ak@suse.de
535
- bzipped tarball
536
537
-------------------------------------------------------------------
538
Tue Mar 6 20:36:46 CET 2001 - bk@suse.de
539
540
- update to 2.5.4, added 2 patches from PLD and use buildroot
541
542
-------------------------------------------------------------------
543
Wed Nov 8 17:41:23 CET 2000 - uli@suse.de
544
545
- now builds with -D_GNU_SOURCE, should avoid miscompilation that
546
breaks LFS support
547
- added fix for offset output by Alessandro Rubini
548
- added fix and enhancement for --ifdef by Pete Buechler
549
550
-------------------------------------------------------------------
551
Sun Feb 27 20:16:11 CET 2000 - @suse.de
552
553
- added missing CFLAGS quotes.
554
555
-------------------------------------------------------------------
556
Sun Feb 27 19:07:58 CET 2000 - bk@suse.de
557
558
- added PPC fixes by Uli back again (-fsigned-char, CPPFLAGS)
559
560
-------------------------------------------------------------------
561
Fri Feb 25 17:44:41 CET 2000 - schwab@suse.de
562
563
- Specfile cleanup, get rid of Makefile.Linux
564
- /usr/man -> /usr/share/man
565
- Add group tag.
566
567
-------------------------------------------------------------------
568
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
569
570
- ran old prepare_spec on spec file to switch to new prepare_spec.
571
572
-------------------------------------------------------------------
573
Wed Aug 18 12:13:35 MEST 1999 - uli@suse.de
574
575
- fixed for PPC (-fsigned-char, CPPFLAGS)
576
577
-------------------------------------------------------------------
578
Tue Mar 16 14:58:42 MET 1999 - ro@suse.de
579
580
- update to 2.5.3 using diff from jurix
581
582
-------------------------------------------------------------------
583
Wed Jan 13 15:45:28 MET 1999 - bs@suse.de
584
585
- applied patch from Egbert Eich (problems with non existing files fixed)
586
587
-------------------------------------------------------------------
588
Thu Nov 5 00:19:13 MET 1998 - ro@suse.de
589
590
- use libc's basename() for glibc
591
592