-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vipw/vigr affect bash because it changes to PGID. #1194
Comments
I can reproduce: alx@devuan:~$ sudo bash
[sudo] password for alx:
root@devuan:/home/alx# set +m
root@devuan:/home/alx# vipw
vipw: /etc/passwd is unchanged
root@devuan:/home/alx#
exit
alx@devuan:~$ Cc: @millert Should we just revert the commit? Or does anyone have a better idea? |
millert
added a commit
to millert/shadow
that referenced
this issue
Jan 24, 2025
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 shadow-maint#1194.
There is a missing tcsetpgrp() to restore the original terminal process group. It is fixed by #1196. |
alejandro-colomar
pushed a commit
to millert/shadow
that referenced
this issue
Jan 24, 2025
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: 7eca111 (2019-11-11; "Fix vipw not resuming correctly when suspended") Closes: <shadow-maint#1194> Reported-by: <https://github.com/yonecle> Tested-by: Alejandro Colomar <[email protected]> Reviewed-by: Alejandro Colomar <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To fix vipw/vigr not resuming when suspended, the following commit had been added to change pgid(ie. pgrp)
Fix vipw not resuming correctly when suspended
However, vipw/vigr changes to bash's PGID, which affect bash.
Steps to reproduce
Problem#1
# set +m
# vipw
After exiting the editor, bash exists on its own.
Problem#2
The script stops by SIGTTOU.
The text was updated successfully, but these errors were encountered: