Skip to content

stat: reject flag-only % directives closed by another % - #15411

Merged
cakebaker merged 1 commit into
uutils:mainfrom
Franklin-Qi:fix/15348-stat-invalid-percent-flags
Oct 17, 2026
Merged

cakebaker merged 1 commit into
uutils:mainfrom
Franklin-Qi:fix/15348-stat-invalid-percent-flags

Conversation

@Franklin-Qi

@Franklin-Qi Franklin-Qi commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

GNU rejects formats like %++-+%1212x with stat: '%++-+%': invalid directive. Match that instead of treating the second % as a conversion character.

Closes: #15348

GNU reports `%++-+%` as an invalid directive. Stop treating the second
`%` as a conversion specifier after flag characters.

Closes: uutils#15348
@cakebaker
cakebaker merged commit dd74d76 into uutils:main Oct 17, 2026
98 checks passed
@cakebaker

Copy link
Copy Markdown
Contributor

Thanks!

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.

bug(stat): Parser Edge Cases (--format option) (Fuzzing Part 1)

2 participants