changeset 4526:e533c13df9ad

7078355: sun/net/www/protocol/file/DirPermissionDenied.sh leaves garbage on some linux systems Reviewed-by: chegar
author weijun
date Fri, 12 Aug 2011 21:04:50 +0800
parents cb83fe13af98
children 8f962aca221e
files test/sun/net/www/protocol/file/DirPermissionDenied.sh
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/net/www/protocol/file/DirPermissionDenied.sh	Fri Aug 12 12:26:31 2011 +0800
+++ b/test/sun/net/www/protocol/file/DirPermissionDenied.sh	Fri Aug 12 21:04:50 2011 +0800
@@ -37,5 +37,9 @@
 
 $TESTJAVA/bin/java -classpath $TESTCLASSES DirPermissionDenied ${TESTDIR}
 result=$?
+
+# Add back read access for user, otherwise not removable on some systems
+chmod u+r ${TESTDIR}
+
 rm -rf ${TESTDIR}
 exit $result