Add a missing uio_td assignment (that unionfs needs).
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 14 Aug 2004 19:55:28 +0000 (19:55 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 14 Aug 2004 19:55:28 +0000 (19:55 +0000)
Reported-by: David Rhodus <sdrhodus@gmail.com>
sys/kern/vfs_lookup.c

index c9977c7..77d27d1 100644 (file)
@@ -37,7 +37,7 @@
  *
  *     @(#)vfs_lookup.c        8.4 (Berkeley) 2/16/94
  * $FreeBSD: src/sys/kern/vfs_lookup.c,v 1.38.2.3 2001/08/31 19:36:49 dillon Exp $
- * $DragonFly: src/sys/kern/vfs_lookup.c,v 1.13 2004/07/29 20:34:09 dillon Exp $
+ * $DragonFly: src/sys/kern/vfs_lookup.c,v 1.14 2004/08/14 19:55:28 dillon Exp $
  */
 
 #include "opt_ktrace.h"
@@ -212,7 +212,7 @@ namei(struct nameidata *ndp)
                auio.uio_offset = 0;
                auio.uio_rw = UIO_READ;
                auio.uio_segflg = UIO_SYSSPACE;
-               auio.uio_td = NULL;
+               auio.uio_td = cnp->cn_td;
                auio.uio_resid = MAXPATHLEN;
                error = VOP_READLINK(ndp->ni_vp, &auio, cnp->cn_cred);
                if (error) {