SAVENAME was not set for rename and delete as required

Patch from christos, fixes pr 41183
This commit is contained in:
perry 2009-04-11 00:21:57 +00:00
parent 20bc92487c
commit e4c34b0c5f
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tmpfs_vnops.c,v 1.56 2009/04/05 15:10:41 pooka Exp $ */
/* $NetBSD: tmpfs_vnops.c,v 1.57 2009/04/11 00:21:57 perry Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.56 2009/04/05 15:10:41 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.57 2009/04/11 00:21:57 perry Exp $");
#include <sys/param.h>
#include <sys/dirent.h>
@ -219,6 +219,7 @@ tmpfs_lookup(void *v)
error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred);
if (error != 0)
goto out;
cnp->cn_flags |= SAVENAME;
} else
de = NULL;