Conversation
An empty quoted field still consumes a column. Preserve the remaining input and treat empty optional fields as absent, so home and shell values are not silently dropped. Keep rejecting empty user/group names. Signed-off-by: Natsu <139412824+ddy314@users.noreply.github.com>
ddy314
force-pushed
the
fix/sysusers-empty-quoted-fields
branch
from
October 3, 2026 07:05
a19b433 to
1dfc9ed
Compare
ddy314
marked this pull request as ready for review
October 3, 2026 07:06
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An empty quoted column currently ends tokenization. For example,
u service 123 "" /home/service /bin/shloses both the home directory and shell.Distinguish an empty quoted token from exhausted input, and treat empty optional fields as absent while continuing to parse the remaining columns. Empty user and group names remain errors.
Validation:
cargo test -p bootc-sysusers --locked: 13 tests passed.cargo fmt --all -- --check.cargo clippy -p bootc-sysusers --all-targets --locked --no-deps -- -D warningspassed. Including dependency linting encounters an existingcollapsible_ifwarning incrates/utils/src/path.rson Rust 1.96.