# std: fix handling of EBADF error code · gitcafe/zig

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

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

Visibility: public

Requested revision: 2b01764d86d8c1b808a1ffb5913442e8f055762f

Requested commit: 2b01764d86d8c1b808a1ffb5913442e8f055762f

Commit: 2b01764d86d8c1b808a1ffb5913442e8f055762f

Tree: cc382115461ea949b40f4cbdb8bb6912617461f6

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: fix handling of EBADF error code

In the context of read/write it's ambiguous, means file was opened
without read/write respectively.

```

## Parents

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

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