diff options
| author | 2009-03-09 16:56:55 +0000 | |
|---|---|---|
| committer | 2009-03-09 16:56:55 +0000 | |
| commit | 2e418c5c27af7c40f67cdce9817200fe37ddf47a (patch) | |
| tree | 1b49b28438b9806de1ae9ac246a0a61d305cecf9 /sys/kern/vfs_lookup.c | |
| parent | Drop ALIAS_TEXT, plain maps got implemented in a different way; ok gilles@ (diff) | |
| download | wireguard-openbsd-2e418c5c27af7c40f67cdce9817200fe37ddf47a.tar.xz wireguard-openbsd-2e418c5c27af7c40f67cdce9817200fe37ddf47a.zip | |
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@
Diffstat (limited to 'sys/kern/vfs_lookup.c')
| -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) |
