Skip to content

Commit 2eeea95

Browse files
vieirabrianmay
authored andcommitted
Fixed str being used as bytes in daemonize
1 parent 9a77d03 commit 2eeea95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshuttle/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def daemonize():
6767

6868
outfd = os.open(_pidname, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o666)
6969
try:
70-
os.write(outfd, '%d\n' % os.getpid())
70+
os.write(outfd, b'%d\n' % os.getpid())
7171
finally:
7272
os.close(outfd)
7373
os.chdir("/")

0 commit comments

Comments
 (0)