Add a New Comment (Rich Markup)
Debian looks to have fixed this with this patch: https://sources.debian.org/data/main/p/patch/2.7.6-7/debian/patches/0002-Abort_when_cleaning_up_fails.patch
Here's another recipe for triggering this:
$ cat >bad.patch <<EOF > diff --git a/testdir/testfile b/testdir/testfile --- a/testdir/testfile +++ b/testdir/testfile @@ -0,0 +0,1 @@ +This space is intentionally blank > EOF $ patch -p1 -t <bad.patch The next patch would delete the file testdir/testfile, which does not exist! Assuming -R. patching file testdir/testfile Hunk #1 FAILED at 0. 1 out of 1 hunk FAILED -- saving rejects to file testdir/testfile.rej patch: **** Can't reopen file testdir/testfile : No such file or directory patch: **** Can't reopen file testdir/testfile : No such file or directory patch: **** Can't reopen file testdir/testfile : No such file or directory [..]
The same happens when mistyping -R as _R, as I sometimes do:
patch -p1 <some.patch _R [...] patch: **** Can't create file _R.orig : Too many open files patch: **** Can't create file _R.orig : Too many open files patch: **** Can't create file _R.orig : Too many open files patch: **** Can't create file _R.origSegmentatiefout
This sounds similar to bug #58361
I mistakenly type `-p1` as `_p1` which yields such flood of errors and eventually segfaults: ``` root@acai:/etc # g diff mpd.conf|patch -R _p1 patch: ** Can't create file _p1.~1~ : Too many open files .... patch: ** Can't create file _p1.~1~ : Too many open files patch: ** Can't create file _p1.~1~ : Too many open files patch: ** Can't create file _p1.~1~ : Too many open files patch: ** Can't create file _p1.~1~Segmentation fault ``` this option may also have effect on the behavior: ``` export VERSION_CONTROL=t ``` ``` root@acai:/etc # patch --version GNU patch 2.7.6 ```
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11