summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>2000-05-11 22:08:20 +0000
committerchris <chris@FreeBSD.org>2000-05-11 22:08:20 +0000
commite1336e50c1fefc28c276a6b63061bab3dfdbc36a (patch)
treef60332aff3fe188698b9b642b9f4fbc6cb7eb674 /sys/kern
parenta59b93292e0847e7f09efd819c36504adc3665e1 (diff)
downloadFreeBSD-src-e1336e50c1fefc28c276a6b63061bab3dfdbc36a.zip
FreeBSD-src-e1336e50c1fefc28c276a6b63061bab3dfdbc36a.tar.gz
Include UID and GID information for stat() calls using the values filled
into the file descriptor data by falloc(). Reviewed by: phk
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sys_pipe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index be86883..40d47e4 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1093,9 +1093,10 @@ pipe_stat(fp, ub, p)
ub->st_atimespec = pipe->pipe_atime;
ub->st_mtimespec = pipe->pipe_mtime;
ub->st_ctimespec = pipe->pipe_ctime;
+ ub->st_uid = fp->f_cred->cr_uid;
+ ub->st_gid = fp->f_cred->cr_gid;
/*
- * Left as 0: st_dev, st_ino, st_nlink, st_uid, st_gid, st_rdev,
- * st_flags, st_gen.
+ * Left as 0: st_dev, st_ino, st_nlink, st_rdev, st_flags, st_gen.
* XXX (st_dev, st_ino) should be unique.
*/
return 0;
OpenPOWER on IntegriCloud