diff options
author | Frerich Raabe <raabe@froglogic.com> | 2016-02-11 14:11:18 +0100 |
---|---|---|
committer | Katja Marttila <katja.marttila@theqtcompany.com> | 2016-02-19 11:07:28 +0000 |
commit | 7b6c2da46f9fab73d75aaf42ed7fbb063f4369f3 (patch) | |
tree | a4c41ead288db9309137f92e895ec4c31c1f4dfc /tests | |
parent | 63c91e70dcccd215095b822712159a499a840825 (diff) |
Fixed reading stderr output of sudo
After the sudo process finished, we need to make sure to read any
buffered bytes from the stderr pipe. Without this, the stderr data which
was shown in the message box often ended up being incomplete. For
instance, three failures to enter the correct root password would show a
message box saying
Sorry, try again.
Sorry, try again.
Instead of
Sorry, try again.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts
Change-Id: Ib1e7aa40d95f9bf140ba1978fdb9be92cad926b6
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions