Date: Tue, 28 Jan 2003 07:40:36 -0800 (PST) From: Brian Feldman <green@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 24328 for review Message-ID: <200301281540.h0SFea9W018601@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=24328 Change 24328 by green@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@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301281540.h0SFea9W018601>