-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
Zig Version
0.12.0-dev.163+6780a6bbf
Steps to Reproduce and Observed Behavior
- Paste into
repro.zig
const std = @import("std");
test {
try std.fs.cwd().symLink("../../boop", "folder", .{});
try std.fs.cwd().makePath("folder/infinite-loop");
}- zig test repro.zig
- Infinite loop
Expected Behavior
It shouldn't infinite loop
It is a valid question whether it should follow the symlink and "continue" creating the directory through the symlink, joining the path. There is an argument for either case.
But it shouldn't infinite loop
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.