Skip to content

ls: restore WASI ".." metadata fallback in collect_directory_entries#11930

Draft
sylvestre wants to merge 1 commit intouutils:mainfrom
sylvestre:ls-dot
Draft

ls: restore WASI ".." metadata fallback in collect_directory_entries#11930
sylvestre wants to merge 1 commit intouutils:mainfrom
sylvestre:ls-dot

Conversation

@sylvestre
Copy link
Copy Markdown
Contributor

The ls refactor in #9851 dropped the WASI guard added in #11633, so ls -al at a preopened root once again fails with "Capabilities insufficient" when stat'ing "..". Extract the logic into a small dotdot_path helper and add a regression test covering ls -al.

The ls refactor in uutils#9851 dropped the WASI guard added in uutils#11633, so
`ls -al` at a preopened root once again fails with "Capabilities
insufficient" when stat'ing "..". Extract the logic into a small
`dotdot_path` helper and add a regression test covering `ls -al`.
@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/date/date-locale-hour (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/date/resolution (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/pr/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/tail-n0f (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/cut/bounded-memory is now being skipped but was previously passing.
Congrats! The gnu test tests/printf/printf-surprise is now passing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant