Skip to content

Commit

Permalink
Fix #1261 regression
Browse files Browse the repository at this point in the history
There is no such thing as rwb in py3 apparently
  • Loading branch information
Arusekk committed Nov 3, 2020
1 parent 9e76e50 commit 0b1f430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/util/misc.py
Expand Up @@ -265,7 +265,7 @@ def run_in_new_terminal(command, terminal = None, args = None, kill_at_exit = Tr

log.debug("Launching a new terminal: %r" % argv)

stdin = stdout = stderr = open(os.devnull, 'rwb')
stdin = stdout = stderr = open(os.devnull, 'r+b')
if terminal == 'tmux':
stdout = subprocess.PIPE

Expand Down

0 comments on commit 0b1f430

Please sign in to comment.