use PATH_MAX instead of MAXPATHLEN
limits.h for PATH_MAX
fix function signature
Merge branch 'master' into smbfs