prompt-toolkit / pymux

A terminal multiplexer (like tmux) in Python
BSD 3-Clause "New" or "Revised" License
1.44k stars 82 forks source link

Make sure sockets are not world readable #36

Closed kseistrup closed 8 years ago

kseistrup commented 8 years ago

This pull request sets umask 0027 before calling bind_socket(), such that sockets are not world readable. If applied, this will fix the last part of #12 so that the issue can be closed.

Since Python 2 uses the notation 0027 and Python 3 uses the notation 0o027, the correct value is created from the string '0027'.

jonathanslenders commented 8 years ago

Thank you Klaus! It's merged in: https://github.com/jonathanslenders/pymux/commit/0e1b1642e758409068b1b0ef52b422a2f0222215