Also, note that your queried maxPath value can be -1 in situations where a system describes itself as having no inherent limit.  I don't know that it's anything that would really be encountered in the wild, but the manpage describes it that way. 