Home
last modified time | relevance | path

Searched refs:component (Results 1 – 3 of 3) sorted by relevance

/openssh-portable/regress/
H A Dcheck-perm.c38 char component[PATH_MAX]; in safely_chroot() local
43 if (strlen(path) >= sizeof(component)) 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()
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()
/openssh-portable/
H A Dsession.c1311 char component[PATH_MAX]; in safely_chroot() local
1316 if (strlen(path) >= sizeof(component)) in safely_chroot()
1325 strlcpy(component, path, sizeof(component)); in safely_chroot()
1328 memcpy(component, path, cp - path); in safely_chroot()
1329 component[cp - path] = '\0'; in safely_chroot()
1332 debug3_f("checking '%s'", component); in safely_chroot()
1334 if (stat(component, &st) != 0) in safely_chroot()
1336 component, strerror(errno)); in safely_chroot()
1340 cp == NULL ? "" : "component ", component); in safely_chroot()
1343 cp == NULL ? "" : "component ", component); in safely_chroot()
H A DLICENCE116 One component of the ssh source code is under a 3-clause BSD license,