# Make 'stat of a symlink' test case not rely on OpenDirOptions.no_follow behavior · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f5d0664e78211fbc366801868d59d9f909cd0471)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f5d0664e78211fbc366801868d59d9f909cd0471

Requested commit: f5d0664e78211fbc366801868d59d9f909cd0471

Commit: f5d0664e78211fbc366801868d59d9f909cd0471

Tree: 180ca9e517ad4dde13cef761667378929a6d33af

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
Make 'stat of a symlink' test case not rely on OpenDirOptions.no_follow behavior

The `no_follow` behavior happened to allow opening a file descriptor of a symlink itself on Windows, but that behavior may change in the future. Instead, we implement the opening of the symlink as a file descriptor manually (and per-platform) in the test case.

```

## Parents

- [11a398af3e12f0d1da0a5f95a17e334a063890a9](https://git.cafe/gitcafe/zig/commit/11a398af3e12f0d1da0a5f95a17e334a063890a9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f5d0664e78211fbc366801868d59d9f909cd0471?format=markdown)
