Skip to content

mkcomposefs: Process last content in dumpfile without newline#331

Merged
jeckersb merged 1 commit intocomposefs:mainfrom
cgwalters:reject-no-trailing-newline
Sep 6, 2024
Merged

mkcomposefs: Process last content in dumpfile without newline#331
jeckersb merged 1 commit intocomposefs:mainfrom
cgwalters:reject-no-trailing-newline

Conversation

@cgwalters
Copy link
Copy Markdown
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 force-pushed the reject-no-trailing-newline branch from 90c1f83 to ce3373f Compare September 5, 2024 22:44
@cgwalters cgwalters changed the title mkcomposefs: Reject dumpfiles without trailing newline mkcomposefs: Process last content in dumpfile without newline Sep 5, 2024
@cgwalters cgwalters force-pushed the reject-no-trailing-newline branch from ce3373f to 202821a Compare September 5, 2024 22:45
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: composefs#327
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters force-pushed the reject-no-trailing-newline branch from 202821a to ad20026 Compare September 6, 2024 12:00
Copy link
Copy Markdown
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 composefs:main Sep 6, 2024
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