Skip to content

Fix chsh when called as root

Quentin Rameau util-linux 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2lib/pwdutils: add xgetpwuidinclude/pwdutils.h lib/pwdutils.c+29 -00 replies
2/2chsh: replace getpw unsafe functions with xgetpwlogin-utils/chsh.c+4 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix chsh when called as root

Hello,

Because chsh was using getpwuid/getpwnam, there was an issue with subsequent call to readline with tilde expansion which would also call the same function and overwrite the getpwuid/getpwnam internal storage struct passwd, replacing passed username results.