PERFORCE change 24328 for review

Brian Feldman green at freebsd.org
Tue Jan 28 15:40:36 GMT 2003


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

Change 24328 by green at green_laptop_2 on 2003/01/28 07:40:26

	Fix a bug in implementation of the file entry points which
	made /dev/fd/* not work anymore.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sys/kern/kern_descrip.c#4 edit

Differences ...

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

@@ -2068,6 +2068,9 @@
 	int error;
 {
 	register struct file *wfp;
+#ifdef MAC
+	int myerror;
+#endif
 	struct file *fp;
 
 	/*
@@ -2082,10 +2085,10 @@
 		return (EBADF);
 	}
 #ifdef MAC
-	error = mac_check_file_dup(td->td_ucred, wfp, dfd);
-	if (error) {
+	myerror = mac_check_file_dup(td->td_ucred, wfp, dfd);
+	if (myerror) {
 		FILEDESC_UNLOCK(fdp);
-		return (error);
+		return (myerror);
 	}
 #endif
 
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list