changeset 11089:1d0f8cb05b08

6599411 Fix for 4697677 has security regression
author Vallish Vaidyeshwara <Vallish.Vaidyeshwara@Sun.COM>
date Wed, 18 Nov 2009 11:25:32 +0530
parents 650086a6e474
children 15bf339bd614
files usr/src/uts/common/fs/lookup.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/fs/lookup.c	Wed Nov 18 10:34:36 2009 +0800
+++ b/usr/src/uts/common/fs/lookup.c	Wed Nov 18 11:25:32 2009 +0530
@@ -229,7 +229,7 @@
 	vnode_t *startvp;
 	vnode_t *zonevp = curproc->p_zone->zone_rootvp;		/* zone root */
 	int must_be_directory = 0;
-	boolean_t retry_with_kcred = B_FALSE;
+	boolean_t retry_with_kcred;
 
 	CPU_STATS_ADDQ(CPU, sys, namei, 1);
 	nlink = 0;
@@ -259,6 +259,8 @@
 
 	startvp = vp;
 next:
+	retry_with_kcred = B_FALSE;
+
 	/*
 	 * Make sure we have a directory.
 	 */