aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/unionfs/union_vfsops.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-10-11 23:38:17 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-10-11 23:38:17 +0000
commitbd78cece5df2063d2e852bd6c895e05385eea931 (patch)
treed3ca87a8ac917d5003235cc737cd5f76591f7c1b /sys/fs/unionfs/union_vfsops.c
parent698166ca554d6cba78cd1728268fa03091697973 (diff)
Change the kernel's ucred API as follows:
- crhold() returns a reference to the ucred whose refcount it bumps. - crcopy() now simply copies the credentials from one credential to another and has no return value. - a new crshared() primitive is added which returns true if a ucred's refcount is > 1 and false (0) otherwise.
Notes
Notes: svn path=/head/; revision=84827
Diffstat (limited to 'sys/fs/unionfs/union_vfsops.c')
-rw-r--r--sys/fs/unionfs/union_vfsops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c
index 7f616cb50ffb..53c5ae68622d 100644
--- a/sys/fs/unionfs/union_vfsops.c
+++ b/sys/fs/unionfs/union_vfsops.c
@@ -223,8 +223,7 @@ union_mount(mp, path, data, ndp, td)
goto bad;
}
- um->um_cred = td->td_proc->p_ucred;
- crhold(um->um_cred);
+ um->um_cred = crhold(td->td_proc->p_ucred);
um->um_cmode = UN_DIRMODE &~ td->td_proc->p_fd->fd_cmask;
/*