RFR: JDK-7065902 - (file) test/java/nio/file/Files/Misc.java fails on Solaris 11 when run as root
Rob McKenna
rob.mckenna at oracle.com
Thu Nov 21 12:48:20 PST 2013
Util.java in:
http://hg.openjdk.java.net/jdk8/tl/jdk/rev/da14e2c90bcb
does this.
-Rob
On 21/11/13 20:22, Alan Bateman wrote:
> On 21/11/2013 19:29, Dan Xu wrote:
>> Hi All,
>>
>> Please review the simple fix towards
>> test/java/nio/file/Files/Misc.java. It only fails when it is run by
>> root. As Alan commented in the bug, the root has all permissions, so
>> the test assumptions are wrong. Thanks!
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-7065902
>> Webrev: http://cr.openjdk.java.net/~dxu/7065902/webrev/
> This looks okay although it's possible for users other than root to be
> a superuser. I think we have at least one other test that checks if
> /etc/passwd is writable as a crude indication as to whether the test
> is being run by root or not.
>
> -Alan
More information about the nio-dev
mailing list