3 ms·
Note that this is likely an issue of PATH_MAX being used, a constant which is often used as the maximum path length when constructing buffers. Different progra
by tenfingers 11y ago
Note that this is likely an issue of PATH_MAX being used, a constant which is often used as the maximum path length when constructing buffers.
Different programs might have different limits which are irrespective of the file system itself (and the filesystem has usually a different limit for a single name - PATH_MAX is usually relevant for symlink lookups).
linux/limits.h defines it as 4k, which is longer, but you would be surprised that many tools often define their buffer sizes arbitrarily (with 256 being _quite_ too common).
Given that each fs might have different limits, it's kind of bad practice to assume some fixed length as the maximum path size (I don't know if linux actually enforces PATH_MATH in vfs as a ceiling for all fses anyway).