diff options
author | mm <mm@FreeBSD.org> | 2012-01-15 18:08:15 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-01-15 18:08:15 +0000 |
commit | 262107130996e0ed96134f31a40f5b371b0af705 (patch) | |
tree | b43c2cdd62c2271ef1d37669dc31e3919c1f7ebb /sys | |
parent | 0c3c0d072d084125763c899a3c6753a59d028eb8 (diff) | |
download | FreeBSD-src-262107130996e0ed96134f31a40f5b371b0af705.zip FreeBSD-src-262107130996e0ed96134f31a40f5b371b0af705.tar.gz |
Fix missing in r230129:
kern_jail.c: initialize fullpath_disabled to zero
vfs_cache.c: add missing dot in comment
Reported by: kib
MFC after: 1 month
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_jail.c | 1 | ||||
-rw-r--r-- | sys/kern/vfs_cache.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index de92dc4..bcb1df9 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -881,6 +881,7 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags) } #endif + fullpath_disabled = 0; root = NULL; error = vfs_getopt(opts, "path", (void **)&path, &len); if (error == ENOENT) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 9783e80..e4de804 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1291,7 +1291,7 @@ vn_commname(struct vnode *vp, char *buf, u_int buflen) * vnode is left locked and path remain untouched. * * If vp is a directory, the call to vn_fullpath_global() always succeeds - * because it falls back to the ".." lookup if the namecache lookup fails + * because it falls back to the ".." lookup if the namecache lookup fails. */ int vn_path_to_global_path(struct thread *td, struct vnode *vp, char *path, |