Fix chsh when called as root
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib/pwdutils: add xgetpwuidinclude/ lib/ | +29 | 0 replies | |
| 2/2 | chsh: replace getpw unsafe functions with xgetpwlogin-utils/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.