Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 NOFOLLOW should be passed to NDINIT() in...



details:   https://anonhg.NetBSD.org/src/rev/0d2873747792
branches:  trunk
changeset: 582896:0d2873747792
user:      cube <cube%NetBSD.org@localhost>
date:      Sun Jul 10 16:34:53 2005 +0000

description:
NOFOLLOW should be passed to NDINIT() instead of FOLLOW for lstat(2).
Reported by Martin Husemann.

diffstat:

 sys/compat/netbsd32/netbsd32_fs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 259fd0bb93f8 -r 0d2873747792 sys/compat/netbsd32/netbsd32_fs.c
--- a/sys/compat/netbsd32/netbsd32_fs.c Sun Jul 10 16:24:29 2005 +0000
+++ b/sys/compat/netbsd32/netbsd32_fs.c Sun Jul 10 16:34:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_fs.c,v 1.19 2005/02/26 23:10:21 perry Exp $   */
+/*     $NetBSD: netbsd32_fs.c,v 1.20 2005/07/10 16:34:53 cube Exp $    */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.19 2005/02/26 23:10:21 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.20 2005/07/10 16:34:53 cube Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ktrace.h"
@@ -759,7 +759,7 @@
        sg = stackgap_init(p, 0);
        CHECK_ALT_EXIST(p, &sg, path);
 
-       NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, path, p);
+       NDINIT(&nd, LOOKUP, NOFOLLOW | LOCKLEAF, UIO_USERSPACE, path, p);
        if ((error = namei(&nd)) != 0)
                return (error);
        error = vn_stat(nd.ni_vp, &sb, p);



Home | Main Index | Thread Index | Old Index