mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
lutimes() bug: FOLLOW should be NOFOLLOW for this one.
Submitted by: Dan Nelson <dnelson@emsphone.com>
This commit is contained in:
parent
3a1b3a3fa7
commit
ab533dd005
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49221
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user