-
Notifications
You must be signed in to change notification settings - Fork 141
Check if stdio tty pgrp matches for exec_bg #1380
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
Conversation
|
Pushed a commit to port sudo-project/sudo@78b7121 too. |
|
I've created #1390 to remind us to write an integration test for the OFLAG commit that was piggy-backed on this PR. |
|
Note:I think the |
|
Maybe also an integration test that demonstrates the behaviour? |
82cd834 to
0e2dea0
Compare
This way redirecting stdio to another tty won't be treated as if stdio isn't redirected at all. This matches newer ogsudo versions.
0e2dea0 to
d6ed295
Compare
squell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the commits that re-introduce missing keystrokes, and introduce the “oflag” feature this looks good to me.
d6ed295 to
c6c97ed
Compare
c6c97ed to
333b238
Compare
This way redirecting stdio to another tty won't be treated as if stdio
isn't redirected at all.
This matches newer ogsudo versions.
Also introduced a
SafeTtytrait to ensure a bunch of methods that invoke ioctls only get called on known real ttys.Fixes #1377