diff options
Diffstat (limited to 'sys/compat/netbsd/netbsd_file.c')
-rw-r--r-- | sys/compat/netbsd/netbsd_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/netbsd/netbsd_file.c b/sys/compat/netbsd/netbsd_file.c index fc1268bbc87..5b35d37d8ce 100644 --- a/sys/compat/netbsd/netbsd_file.c +++ b/sys/compat/netbsd/netbsd_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_file.c,v 1.4 2002/08/23 15:39:31 art Exp $ */ +/* $OpenBSD: netbsd_file.c,v 1.5 2003/08/15 20:32:16 tedu Exp $ */ /* $NetBSD: freebsd_file.c,v 1.3 1996/05/03 17:03:09 christos Exp $ */ /* @@ -523,7 +523,7 @@ statfs_to_netbsd_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)); |