Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Use LinkOption.NO_FOLLOW_LINKS when fetching BasicFileAttributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMichaelJohnson committed Jan 22, 2015
1 parent 55a5bf3 commit 6738762
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/google/enterprise/adaptor/fs/NioFileDelegate.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public boolean isHidden(Path doc) throws IOException {

@Override
public BasicFileAttributes readBasicAttributes(Path doc) throws IOException {
return Files.readAttributes(doc, BasicFileAttributes.class);
return Files.readAttributes(doc, BasicFileAttributes.class,
LinkOption.NOFOLLOW_LINKS);
}

@Override
Expand Down

0 comments on commit 6738762

Please sign in to comment.