# os.linux: faccessat wrapper prefer to faccessat syscall when flags is zero\. · gitcafe/zig

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

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

Visibility: public

Requested revision: a7769e25beaf928b44449bd3746b3eb326255687

Requested commit: a7769e25beaf928b44449bd3746b3eb326255687

Commit: a7769e25beaf928b44449bd3746b3eb326255687

Tree: c11933e50415f4a5f096ba92705bb94b0a89085d

Author: Qun He

Committer: Andrew Kelley

## Message

```
os.linux: faccessat wrapper prefer to faccessat syscall when flags is zero.

This make `fs.Dir.access` has compatibility like the zig version before.

With this change the `zig build --search-prefix` command would work again like
the zig 0.14 version when used on Ubuntu22.04, kernel version 5.4.

```

## Parents

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

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