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

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

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

Visibility: public

Requested revision: caa89c7601bba7520bae0e295cce1b7db896041c

Requested commit: caa89c7601bba7520bae0e295cce1b7db896041c

Commit: caa89c7601bba7520bae0e295cce1b7db896041c

Tree: f93d8f37adb3b1d33b4e36cd610f1e00f65f31c5

Author: Qun He

Committer: Alex Rønne Petersen

## 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

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

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