Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkcomposefs: Process last content in dumpfile without newline #331

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

cgwalters
Copy link
Contributor

@cgwalters cgwalters commented Sep 5, 2024

I was doing some more testing and ended up crafting a dumpfile
without a trailing newline. It took me a surprising amount
of time to figure out that we just ignore data without a
trailing newline.

Hopefully, this doesn't break anyone.

Closes: #327
Signed-off-by: Colin Walters walters@verbum.org


@cgwalters cgwalters changed the title mkcomposefs: Reject dumpfiles without trailing newline mkcomposefs: Process last content in dumpfile without newline Sep 5, 2024
I was doing some more testing and ended up crafting a dumpfile
without a trailing newline. It took me a surprising amount
of time to figure out that we just ignore data without a
trailing newline.

Hopefully, this doesn't break anyone.

Closes: containers#327
Signed-off-by: Colin Walters <walters@verbum.org>
Copy link
Collaborator

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeckersb jeckersb merged commit 8aeeb1b into containers:main Sep 6, 2024
13 checks passed
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.

mkcomposefs --from-file ignores last line without newline
2 participants