Created attachment 192647 [details] patch file to increse PATH_MAX This change can be beneficial for ports like rsync where long path causes buffer overflow see bug #22576
(In reply to Rodrigo Osorio from comment #0) The bug is is : bug #225761
This shouldn't be done solely for a piece of broken ports software. This is a big change, not to mention ABI-breaking. It can't go to stable/* but the port needs to work on stable/*, presumably. The supplied patch also isn't sufficient to fix up the fallout (particularly, libc glob allocates a bunch of MAXPATHLEN buffers on the stack, which becomes much worse with a 4kB length). Here is a little more thorough treatment of the issue: https://reviews.freebsd.org/D12330 (it also bumps MAXNAMLEN from 255 to 1023 — long enough to hold 255 arbitrary Unicode characters in UTF-8).
This needs arch-level discussion and buy-in; it's not a Bugzilla PR level issue.