Skip to content

Conversation

@alejandro-colomar
Copy link
Collaborator

@alejandro-colomar alejandro-colomar commented Jan 17, 2026

This wasn't only an optimization; it also skipped some checks that were now spuriously triggering errors. We may be able to get rid of the optimizations, but that will need more analysis. For now, let's revert to a known-good state.

Fixes: 6a8a25d (2025-10-15; "src/usermod.c: Remove optimizations")
Reverts: 6a8a25d (2025-10-15; "src/usermod.c: Remove optimizations")
Closes: #1509
Reported-by: @AdamWill

This wasn't only an optimization; it also skipped some checks that were
now spuriously triggering errors.  We may be able to get rid of the
optimizations, but that will need more analysis.  For now, let's revert
to a known-good state.

Fixes: 6a8a25d (2025-10-15; "src/usermod.c: Remove optimizations")
Reverts: 6a8a25d (2025-10-15; "src/usermod.c: Remove optimizations")
Closes: <shadow-maint#1509>
Reported-by: Adam Williamson <awilliam@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passing --uid <existing UID> to usermod used to be harmlessly ignored, now it causes an error

1 participant