You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/06 10:46:43 UTC
svn commit: r801540 -
/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
Author: mturk
Date: Thu Aug 6 08:46:42 2009
New Revision: 801540
URL: http://svn.apache.org/viewvc?rev=801540&view=rev
Log:
Use full access flags
Modified:
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java?rev=801540&r1=801539&r2=801540&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java Thu Aug 6 08:46:42 2009
@@ -240,11 +240,11 @@
{
File f = new File("ffoo");
f.createNewFile();
+ // Make sure we have GWRITE regardless of default umask
+ f.setFileProtection(EnumSet.of(FileProtection.UWRITE, FileProtection.UREAD, FileProtection.GWRITE, FileProtection.GREAD));
EnumSet <FileProtection> fp = f.getFileProtection();
System.out.println();
System.out.println("Org Rdonly Protection " + fp);
- // Make sure we have GWRITE regardless of default umask
- f.setFileProtection(EnumSet.of(FileProtection.GWRITE));
// Set the rdonly attributes
f.setFileAttributes(EnumSet.of(FileAttributes.READONLY), EnumSet.allOf(FileAttributes.class));
// Clear the rdonly attributes