| author | |
| committer | |
| log | 606b6462ceaaeb2d993df684829a27db16eea18a |
| tree | 211ce8e6801989a681bcbecda8403e0f6ec7f7b9 |
| parent | d726c2a2d30146189f2b31aafcdeca25bc61c7f9 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/fs.zig+1-1| ... | ... | @@ -84,7 +84,7 @@ pub fn atomicSymLink(allocator: *Allocator, existing_path: []const u8, new_path: |
| 84 | 84 | try crypto.randomBytes(rand_buf[0..]); |
| 85 | 85 | base64_encoder.encode(tmp_path[dirname.len + 1 ..], &rand_buf); |
| 86 | 86 | |
| 87 | if (cwd().symLink(existing_path, new_path, .{})) { | |
| 87 | if (cwd().symLink(existing_path, tmp_path, .{})) { | |
| 88 | 88 | return rename(tmp_path, new_path); |
| 89 | 89 | } else |err| switch (err) { |
| 90 | 90 | error.PathAlreadyExists => continue, |