"io/fs"
"os"
"path/filepath"
+ "runtime"
"syscall"
"testing"
}
_, uid, _, gid := ft.CurrentUserAndGroup()
+ symlinkExists := "open file: too many levels of symbolic links"
+ if runtime.GOOS == "freebsd" {
+ // EMLINK instead of ELOOP
+ symlinkExists = "open file: too many links"
+ }
+
tests := []struct {
name string
path string
},
},
nil,
- fmt.Errorf("open file: too many levels of symbolic links"),
+ fmt.Errorf(symlinkExists),
},
{
"exists: fifo",