chkparent
if (chkparent(target) < 0 ) {
if (errno == ENOENT && chkparent(name) >= 0 &&
static int chkparent(char *);
(chkparent(target) == 0 && mkdir(target, mode) == 0)) {
if (errno != ENOENT || chkparent(new) < 0 ||
if (errno != ENOENT || chkparent(new) < 0 ||