This patch addresses Peter's concerns about the safety of path lengths with directory handling in lar. If this gets acked, I'll refactor my original lar directory handling patch to use this.
The changes are all in util/lar/lib.c use MAX_PATHLEN instead of defining a new MAX_PATH do the math before any string operations and fail if the new name will be larger than MAX_PATHLEN use strcpy and strcat since we know it's safe.
Myles
Signed-off-by: Myles Watson mylesgw@gmail.com