Give default value of O_NOFOLLOW if it is not defined
Alan Bateman
Alan.Bateman at oracle.com
Fri Jan 13 05:35:15 PST 2012
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.
More information about the nio-dev
mailing list