# frontend: ignore AccessDenied when writing builtin.zig · gitcafe/zig

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

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

Visibility: public

Requested revision: 6b2709616e22e7651f16293034cc0d25f0e9be0a

Requested commit: 6b2709616e22e7651f16293034cc0d25f0e9be0a

Commit: 6b2709616e22e7651f16293034cc0d25f0e9be0a

Tree: d3dc659be126b3e6212197c955c52fbe277894a9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
frontend: ignore AccessDenied when writing builtin.zig

This issue already existed in master branch, however, the more
aggressive caching of builtin.zig in this branch made it happen more
often. I added doc comments to AtomicFile to explain when this problem
can occur.

For the compiler's use case, error.AccessDenied can be simply swallowed
because it means the destination file already exists and there is
nothing else to do besides proceed with the AtomicFile cleanup.

I never solved the mystery of why the log statements weren't printing
but those are temporary debugging instruments anyway, and I am already
too many yaks deep to whip out another razor.

closes #14978

```

## Parents

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

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