diff options
author | attilio <attilio@FreeBSD.org> | 2009-05-11 16:32:58 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2009-05-11 16:32:58 +0000 |
commit | c639aa3d25c7a98394ec85bf76a36d928ad76c42 (patch) | |
tree | 68445f5c8ef1311aa0592b34da25f9b36e238f94 /sys/kern/vfs_lookup.c | |
parent | 1dcb84131b6679f5d53452314d4ca1dfe2d8c5f0 (diff) | |
download | FreeBSD-src-c639aa3d25c7a98394ec85bf76a36d928ad76c42.zip FreeBSD-src-c639aa3d25c7a98394ec85bf76a36d928ad76c42.tar.gz |
Fix a kernel compilation error, introduced after r191990, by defining
thread with curthread in the AUDIT case.
Reported by: dchagin
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 6dbb8d0..a6e663a 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -457,6 +457,9 @@ lookup(struct nameidata *ndp) int dvfslocked; /* VFS Giant state for parent */ int tvfslocked; int lkflags_save; +#ifdef AUDIT + struct thread *td = curthread; +#endif /* * Setup: break out flag bits into variables. |