diff options
author | mjg <mjg@FreeBSD.org> | 2015-07-11 16:19:11 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-07-11 16:19:11 +0000 |
commit | c71e9ab8634afefe13ecbf6d9f4d812ed55d78fb (patch) | |
tree | 741d49ee2f431c27b257f68012810a50396f9ffc /sys/compat/svr4 | |
parent | cf5550c91f0ee2c61d9d53dd6cb0c926f95f2a78 (diff) | |
download | FreeBSD-src-c71e9ab8634afefe13ecbf6d9f4d812ed55d78fb.zip FreeBSD-src-c71e9ab8634afefe13ecbf6d9f4d812ed55d78fb.tar.gz |
Move chdir/chroot-related fdp manipulation to kern_descrip.c
Prefix exported functions with pwd_.
Deduplicate some code by adding a helper for setting fd_cdir.
Reviewed by: kib
Diffstat (limited to 'sys/compat/svr4')
-rw-r--r-- | sys/compat/svr4/svr4_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index ec4504e..5e53874 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -643,7 +643,7 @@ svr4_sys_fchroot(td, uap) goto fail; #endif VOP_UNLOCK(vp, 0); - error = change_root(vp, td); + error = pwd_chroot(td, vp); vrele(vp); return (error); fail: |