Lines Matching full:component
38 char component[PATH_MAX]; in safely_chroot() local
43 if (strlen(path) >= sizeof(component)) in safely_chroot()
47 * Descend the path, checking that each component is a in safely_chroot()
52 strlcpy(component, path, sizeof(component)); in safely_chroot()
55 memcpy(component, path, cp - path); in safely_chroot()
56 component[cp - path] = '\0'; in safely_chroot()
59 /* debug3("%s: checking '%s'", __func__, component); */ in safely_chroot()
61 if (stat(component, &st) != 0) in safely_chroot()
63 component, strerror(errno)); in safely_chroot()
67 cp == NULL ? "" : "component ", component); in safely_chroot()
70 cp == NULL ? "" : "component ", component); in safely_chroot()
121 /* for each component of the canonical path, walking upwards */ in auth_secure_path()