RFR: JDK-7065902 - (file) test/java/nio/file/Files/Misc.java fails on Solaris 11 when run as root

Dan Xu dan.xu at oracle.com
Thu Nov 21 13:10:05 PST 2013


Thank you, Rob and Alan.

I have a new version for this, 
http://cr.openjdk.java.net/~dxu/7065902/webrev01/ 
<http://cr.openjdk.java.net/%7Edxu/7065902/webrev01/>. Please review it.

-Dan


On 11/21/2013 12:48 PM, Rob McKenna wrote:
> 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20131121/647fc94b/attachment.html 


More information about the nio-dev mailing list