View | Details | Raw Unified | Return to bug 275871 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/fs/unionfs/union_subr.c (+4 lines)
Lines 916-922 unionfs_mkshadowdir(struct unionfs_mount *ump, struct vnode *udvp, Link Here
916
		goto unionfs_mkshadowdir_abort;
916
		goto unionfs_mkshadowdir_abort;
917
	unionfs_create_uppervattr_core(ump, &lva, &va, td);
917
	unionfs_create_uppervattr_core(ump, &lva, &va, td);
918
918
919
	char *pathend = &nd.ni_cnd.cn_nameptr[nd.ni_cnd.cn_namelen];
920
	char pathterm = *pathend;
921
	*pathend = '\0';
919
	error = VOP_MKDIR(udvp, &uvp, &nd.ni_cnd, &va);
922
	error = VOP_MKDIR(udvp, &uvp, &nd.ni_cnd, &va);
923
	*pathend = pathterm;
920
924
921
	if (!error) {
925
	if (!error) {
922
		unionfs_node_update(unp, uvp, td);
926
		unionfs_node_update(unp, uvp, td);

Return to bug 275871