Skip to content

glob follows symlinks recursively #281

@sffc

Description

@sffc

Describe The Bug

In a directory that has a recursive symbolic link, the duckscript glob_array command performs a cyclic recursion.

To Reproduce

  1. Create a symbolic link that points at its parent directory
  2. Use glob_array

Commentary

This is a bug in glob, not duckscript, but duckscript isn't completely off the hook because the glob crate has had an issue open since 2017 (rust-lang/glob#62), and a PR to fix it, but the crate hasn't been updated in several years. There are other glob-like crates in the ecosystem now with better options, including ones to ignore symlinks. It might be worthwhile migrating to one of them.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions