Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
trunk
-
None
Description
svn patch opens the patch file three times for each hunk in the patch. This means that with a file descriptor limit of 1024, trying to apply a patch with more than about 341 hunks (a bit less in practice due to other open files) fails with an error: svn: Can't open file 'test.diff': Too many open files Since the implementation details of svn_hunk_t are opaque to the patch code in libsvn_client, it is possible to fix this problem locally within the diff parser in libsvn_diff/parse-diff.c.