Ondrej Valousek wrote:
> Well, what if we try to create a decently sized stack buffer (say 256 chars) 
> - in 99% we fit into that buffer (actually I can't image we would ever need 
> more), and if we do not fit into that buffer we just return 1

This would mean, a program behaves incorrectly just because some file name
is particularly long. We don't do such things in GNU. The GNU Coding Standards
[1] are clear about it:

  "Avoid arbitrary limits on the length or number of any data structure,
   including file names, lines, files, and symbols, by allocating all data
   structures dynamically."

Bruno

[1] https://www.gnu.org/prep/standards/html_node/Semantics.html




Reply via email to