Additionally, output 0 instead of 7 on permission errors.
Simple script that finds out the maximum supported filename length.