Skip to content

truncate: interpret zero-padded sizes as decimal - #16802

Open
limadog9 wants to merge 1 commit into
uutils:mainfrom
limadog9:truncate-decimal-size-16799
Open

limadog9 wants to merge 1 commit into
uutils:mainfrom
limadog9:truncate-decimal-size-16799

Conversation

@limadog9

Copy link
Copy Markdown
Contributor

A leading zero made truncate -s '<010' cut a ten-byte file to eight bytes. This fix reads zero-padded sizes as decimal and adds regression tests for absolute and at-most sizes.

Closes #16799

@limadog9
limadog9 force-pushed the truncate-decimal-size-16799 branch from 6b74f89 to 1a81149 Compare December 1, 2026 17:25

This branch has not been deployed

No deployments
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.

truncate -s interprets zero-padded sizes as octal and silently cuts files below the requested limit

1 participant