PERFORCE change 93468 for review

Todd Miller millert at FreeBSD.org
Fri Mar 17 21:41:08 UTC 2006


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

Change 93468 by millert at millert_p3 on 2006/03/17 21:37:30

	Correct error path when mac_check_file_change_offset() fails
	in getdirentries().

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sys/kern/vfs_syscalls.c#18 edit

Differences ...

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

@@ -3775,10 +3775,8 @@
 	}
 #ifdef MAC
 	error = mac_check_file_change_offset(td->td_ucred, fp);
-	if (error) {
-		fdrop(fp, td);
-		return (error);
-	}
+	if (error)
+		goto fail;
 #endif
 	aiov.iov_base = uap->buf;
 	aiov.iov_len = uap->count;


More information about the trustedbsd-cvs mailing list