[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] PATH_MAX in mintlib
While browsing the mintlib sources (0.57.6), I noticed that PATH_MAX was 128.
This mostly seems to be used in conjunction with _unx2dos()/_dos2unx(), so I
suppose that for a TOS FAT16 filesystem, this may not be a real problem.
However symbolic link support (symlink/readlink) also uses PATH_MAX as the
maximum symlink size:
1. symlink.c: if we try to create a symbolic link > 128 bytes, a truncated
value will be stored in the link.
2. readlink.c: fails if a symbolic link is more than 128 bytes long.