]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/vipw.c: Restore the original terminal pgrp after editing
authorTodd C. Miller <Todd.Miller@sudo.ws>
Fri, 24 Jan 2025 02:11:09 +0000 (19:11 -0700)
committerAlejandro Colomar <alx@kernel.org>
Sun, 26 Jan 2025 13:59:43 +0000 (14:59 +0100)
commit3b12ab7e29b0f3c766b39269da76a5ef3a753b22
treea913478ffaedb2774fca18fef4fb1c74995ae463
parent1d7dfa0a7bbf36f6f9767b8ee57b4caf3f43c7a5
src/vipw.c: Restore the original terminal pgrp after editing

This fixes a problem when the shell is not in monitor mode (job control
enabled) which resulted in the terminal pgrp being set to an invalid
value once vipw exited.

Fixes: 7eca1112fbd7 (2019-11-11; "Fix vipw not resuming correctly when suspended")
Closes: <https://github.com/shadow-maint/shadow/issues/1194>
Reported-by: <https://github.com/yonecle>
Tested-by: Alejandro Colomar <alx@kernel.org>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
src/vipw.c