checkpath
zone_pathcheck(char *checkpath)
if (checkpath[0] == '\0')
if (resolvepath(checkpath, root, sizeof (root) - 1) == -1) {
(void) strlcpy(root, checkpath, sizeof (root));
static int zone_pathcheck(char *checkpath);
char *checkpath, *dp;
checkpath = strdup(path);
if (checkpath == NULL) {
dp = strrchr(checkpath, '/');
if (strlen(checkpath) == 0)
if (realpath(checkpath, rpath) == NULL) {
free(checkpath);
checkpath = !bitset(SFF_NOPATHCHECK, flags) ||
checkpath = false;
if (checkpath)
bool checkpath;
char zonepath[MAXPATHLEN], checkpath[MAXPATHLEN];
if ((err = zone_get_zonepath(target_zone, checkpath,
sizeof (checkpath))) != Z_OK) {
if (strcmp(zonepath, checkpath) != 0) {
zonepath, checkpath);
if (nftw(subtree, checkpath, 100, FTW_PHYS) != 0)
static int checkpath(const char *, const struct stat *, int, struct FTW *);