diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-09-27 20:00:03 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-09-27 20:00:03 +0000 |
| commit | 993b0567b2370b12c25f7e23c6041fdca4e71645 (patch) | |
| tree | 4eac321c76333209122fe4f6b9ce6e2256310223 /sys | |
| parent | 0fbf9388693400d68d569d70a79ee9e7e07ae476 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/ufs/ffs/ffs_vnops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 8aa0bafe2317a..7e4e3bfcdf82b 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -1436,6 +1436,8 @@ ffs_close_ea(struct vnode *vp, int commit, struct ucred *cred, struct thread *td dp = ip->i_din2; error = ip->i_ea_error; if (commit && error == 0) { + if (cred == NOCRED) + cred = vp->v_mount->mnt_cred; liovec.iov_base = ip->i_ea_area; liovec.iov_len = ip->i_ea_len; luio.uio_iov = &liovec; |
