From 1d5b5bc65ce9d4d3ac3fabc0fca0c43c30b471e8 Mon Sep 17 00:00:00 2001 From: trasz Date: Sat, 17 Jul 2010 15:45:20 +0000 Subject: Remove updating process count by unionfs. It serves no purpose, unionfs just needs root credentials for a moment. --- sys/fs/unionfs/union_subr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c index 0791d2e..7aba881 100644 --- a/sys/fs/unionfs/union_subr.c +++ b/sys/fs/unionfs/union_subr.c @@ -50,7 +50,6 @@ #include #include #include -#include #include @@ -775,7 +774,6 @@ unionfs_mkshadowdir(struct unionfs_mount *ump, struct vnode *udvp, /* Authority change to root */ rootinfo = uifind((uid_t)0); cred = crdup(cnp->cn_cred); - chgproccnt(cred->cr_ruidinfo, 1, 0); change_euid(cred, rootinfo); change_ruid(cred, rootinfo); change_svuid(cred, (uid_t)0); @@ -825,7 +823,6 @@ unionfs_mkshadowdir_free_out: unionfs_mkshadowdir_abort: cnp->cn_cred = credbk; - chgproccnt(cred->cr_ruidinfo, -1, 0); crfree(cred); return (error); -- cgit v1.1