tdircheckpath
(error = tdircheckpath(tp, dir, cred))) {
static int tdircheckpath(struct tmpnode *, struct tmpnode *, struct cred *);