Module Name: src Committed By: perry Date: Sat Apr 11 00:21:57 UTC 2009
Modified Files: src/sys/fs/tmpfs: tmpfs_vnops.c Log Message: SAVENAME was not set for rename and delete as required Patch from christos, fixes pr 41183 To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/sys/fs/tmpfs/tmpfs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/tmpfs/tmpfs_vnops.c diff -u src/sys/fs/tmpfs/tmpfs_vnops.c:1.56 src/sys/fs/tmpfs/tmpfs_vnops.c:1.57 --- src/sys/fs/tmpfs/tmpfs_vnops.c:1.56 Sun Apr 5 15:10:41 2009 +++ src/sys/fs/tmpfs/tmpfs_vnops.c Sat Apr 11 00:21:57 2009 @@ -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 @@ error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred); if (error != 0) goto out; + cnp->cn_flags |= SAVENAME; } else de = NULL;