|
Lines 953-960
kern_jail_set(struct thread *td, struct uio *optuio, int flags)
Link Here
|
| 953 |
VOP_UNLOCK(root, 0); |
953 |
VOP_UNLOCK(root, 0); |
| 954 |
if (fullpath_disabled) { |
954 |
if (fullpath_disabled) { |
| 955 |
/* Leave room for a real-root full pathname. */ |
955 |
/* Leave room for a real-root full pathname. */ |
| 956 |
if (len + (path[0] == '/' && strcmp(mypr->pr_path, "/") |
956 |
if (len + (path != NULL && path[0] == '/' && |
| 957 |
? strlen(mypr->pr_path) : 0) > MAXPATHLEN) { |
957 |
strcmp(mypr->pr_path, "/") ? |
|
|
958 |
strlen(mypr->pr_path) : 0) > MAXPATHLEN) { |
| 958 |
error = ENAMETOOLONG; |
959 |
error = ENAMETOOLONG; |
| 959 |
vrele(root); |
960 |
vrele(root); |
| 960 |
goto done_free; |
961 |
goto done_free; |