PERFORCE change 92172 for review

Wayne Salamon wsalamon at FreeBSD.org
Tue Feb 21 18:52:37 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=92172

Change 92172 by wsalamon at gretsch on 2006/02/22 02:51:36

	Bring the kern_futimes() function in agreement with the current
	FreeBSD CVS version.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/kern/vfs_syscalls.c#27 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/kern/vfs_syscalls.c#27 (text+ko) ====

@@ -2971,11 +2971,10 @@
 	int error;
 
 	AUDIT_ARG(fd, fd);
+	if ((error = getutimes(tptr, tptrseg, ts)) != 0)
+		return (error);
 	if ((error = getvnode(td->td_proc->p_fd, fd, &fp)) != 0)
 		return (error);
-
-	if ((error = getutimes(tptr, tptrseg, ts)) != 0)
-		return (error);
 	vfslocked = VFS_LOCK_GIANT(fp->f_vnode->v_mount);
 	error = setutimes(td, fp->f_vnode, ts, 2, tptr == NULL);
 	VFS_UNLOCK_GIANT(vfslocked);


More information about the trustedbsd-cvs mailing list