Give default value of O_NOFOLLOW if it is not defined
Charles Lee
littlee at linux.vnet.ibm.com
Sun Jan 15 19:25:39 PST 2012
On 01/13/2012 09:35 PM, Alan Bateman wrote:
> On 13/01/2012 05:34, Charles Lee wrote:
>>
>> I am thinking NOFOLLOW_LINKS is not O_NOFOLLOW again and again....
>> On the platform, which does not support O_NOFOLLOW, there will be
>> occurred that some api supports NOFOLLOW_LINKS, others are not. This
>> will be a little confusing.
> Right, LinkOption.NOFOLLOW_LINKS does not imply O_NOFOLLOW is needed.
> For example the following:
>
> Files.readAttributes(file, NOFOLLOW_LINKS) or
> Files.copy(source, target, NOFOLLOW_LINKS)
>
> don't require using the O_NOFOLLOW flag.
>
>> :
>>
>> Please check: http://cr.openjdk.java.net/~littlee/7129029/webrev.01/
>> <http://cr.openjdk.java.net/%7Elittlee/7129029/webrev.01/>
>>
> I'm happy with this I have pushed it on your behalf:
> http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7e593aa6ad41
>
> -Alan.
>
That's great. Thank you very much, Alan.
--
Yours Charles
More information about the nio-dev
mailing list