pdfunite reaches max open files limit on MAX OS X
Submitted by kabeya
Assigned to poppler-bugs
Description
pdfunite tmp000.pdf tmp001.pdf tmp002.pdf .... tmp253.pdf tmp254.pdf output.pdf
Ver. 0.20.5 on Mac OS X (10.7), it fails when 253 input files.
-
pdfunite.cc opens all input files at once, and merge them. Too many open files. No need to keep input files open?
-
In PDFDoc constructor, format string (arg no.) is wrong.
line 156. error(errIO, -1, "Couldn't open file '{0:t}': {0:s}.", fileName, strerror(errno));
must be.
error(errIO, -1, "Couldn't open file '{0:t}': {1:s}.", fileName, strerror(errno));