PERFORCE change 163703 for review
Zhao Shuai
zhaoshuai at FreeBSD.org
Sun Jun 7 11:31:48 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163703
Change 163703 by zhaoshuai at 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
More information about the p4-projects
mailing list