Date: Sun, 7 Jun 2009 11:31:46 GMT From: Zhao Shuai <zhaoshuai@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 163703 for review Message-ID: <200906071131.n57BVkhP086837@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=163703 Change 163703 by zhaoshuai@zhaoshuai on 2009/06/07 11:31:28 fix a bug in sys_pipe.c Affected files ... .. //depot/projects/soc2009/fifo/sys/kern/sys_pipe.c#9 edit Differences ... ==== //depot/projects/soc2009/fifo/sys/kern/sys_pipe.c#9 (text+ko) ==== @@ -183,10 +183,15 @@ { struct pipe *pipe = fp->f_data; + int error; + error = generic_pipe_stat(pipe, ub, active_cred, td); + if (error != 0) + return (error); ub->st_uid = fp->f_cred->cr_uid; ub->st_gid = fp->f_cred->cr_gid; - return generic_pipe_stat(pipe, ub, active_cred, td); + return (0); + } static int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906071131.n57BVkhP086837>