From ab533dd00560f513d97f2ec9dc94055fdf990d5c Mon Sep 17 00:00:00 2001 From: Brian Feldman Date: Thu, 29 Jul 1999 17:02:56 +0000 Subject: [PATCH] lutimes() bug: FOLLOW should be NOFOLLOW for this one. Submitted by: Dan Nelson --- sys/kern/vfs_extattr.c | 4 ++-- sys/kern/vfs_syscalls.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index eeb7c2f5b847..e4333a60285b 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.123 1999/04/28 11:37:09 phk Exp $ + * $Id: vfs_syscalls.c,v 1.124 1999/07/26 06:25:18 alc Exp $ */ /* For 4.3 integer FS ID compatibility */ @@ -2264,7 +2264,7 @@ lutimes(p, uap) } else if ((error = copyin((caddr_t)SCARG(uap, tptr), (caddr_t)tv, sizeof (tv))) != 0) return (error); - NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, SCARG(uap, path), p); + NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, SCARG(uap, path), p); if ((error = namei(&nd)) != 0) return (error); diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index eeb7c2f5b847..e4333a60285b 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.123 1999/04/28 11:37:09 phk Exp $ + * $Id: vfs_syscalls.c,v 1.124 1999/07/26 06:25:18 alc Exp $ */ /* For 4.3 integer FS ID compatibility */ @@ -2264,7 +2264,7 @@ lutimes(p, uap) } else if ((error = copyin((caddr_t)SCARG(uap, tptr), (caddr_t)tv, sizeof (tv))) != 0) return (error); - NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, SCARG(uap, path), p); + NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, SCARG(uap, path), p); if ((error = namei(&nd)) != 0) return (error);