Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
su: race while checking for incorrect password #363
When running with a heavily loaded box:
mitogen.su can fail to spot an incorrect password prompt, because su calls write() twice, once to write "su: ", and again to write "incorrect password". It is possible for su to be preempted between writes and for su.py to observe the partial buffer.