Return to session.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.307, 2018/10/04 00:10:11 | version 1.308, 2018/11/16 03:26:01 | ||
---|---|---|---|
|
|
||
char component[PATH_MAX]; | char component[PATH_MAX]; | ||
struct stat st; | struct stat st; | ||
if (*path != '/') | if (!path_absolute(path)) | ||
fatal("chroot path does not begin at root"); | fatal("chroot path does not begin at root"); | ||
if (strlen(path) >= sizeof(component)) | if (strlen(path) >= sizeof(component)) | ||
fatal("chroot path too long"); | fatal("chroot path too long"); |