summaryrefslogtreecommitdiff
path: root/sys/compat/freebsd/freebsd_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/freebsd/freebsd_file.c')
-rw-r--r--sys/compat/freebsd/freebsd_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/freebsd/freebsd_file.c b/sys/compat/freebsd/freebsd_file.c
index 50284f65de6..b4388177509 100644
--- a/sys/compat/freebsd/freebsd_file.c
+++ b/sys/compat/freebsd/freebsd_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: freebsd_file.c,v 1.16 2002/08/23 15:39:31 art Exp $ */
+/* $OpenBSD: freebsd_file.c,v 1.17 2003/08/15 20:32:15 tedu Exp $ */
/* $NetBSD: freebsd_file.c,v 1.3 1996/05/03 17:03:09 christos Exp $ */
/*
@@ -549,7 +549,7 @@ statfs_to_freebsd_statfs(p, mp, sp, fsp)
fsp->f_files = sp->f_files;
fsp->f_ffree = sp->f_ffree;
/* Don't let non-root see filesystem id (for NFS security) */
- if (suser(p->p_ucred, &p->p_acflag))
+ if (suser(p, 0))
fsp->f_fsid.val[0] = fsp->f_fsid.val[1] = 0;
else
bcopy(&sp->f_fsid, &fsp->f_fsid, sizeof(fsp->f_fsid));