diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2009-03-09 16:56:56 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2009-03-09 16:56:56 +0000 |
commit | 2f97351aff1f0b243038c0475dfebf4dc43dddac (patch) | |
tree | bf7eaeae725c45088455b015f6c86c52e5003b90 | |
parent | 21446aa677b6e97e4f268b0a7dd4bf97080c1495 (diff) |
Clarify comment in namei(): the code commented doesn't check if the
path being looked up *is* a symlink, it checks if it *is not* a
symlink and returns the vnode looked up in that case.
ok thib@
-rw-r--r-- | sys/kern/vfs_lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index db8643ff992..c1e1f80b719 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_lookup.c,v 1.38 2008/03/04 15:30:18 deraadt Exp $ */ +/* $OpenBSD: vfs_lookup.c,v 1.39 2009/03/09 16:56:55 blambert Exp $ */ /* $NetBSD: vfs_lookup.c,v 1.17 1996/02/09 19:00:59 christos Exp $ */ /* @@ -184,7 +184,7 @@ namei(struct nameidata *ndp) return (error); } /* - * Check for symbolic link + * If not a symbolic link, return search result. */ if ((cnp->cn_flags & ISSYMLINK) == 0) { if ((cnp->cn_flags & (SAVENAME | SAVESTART)) == 0) |