Browse Source

Decode byte strings to UTF-8

Sven Velt 5 years ago
parent
commit
621e91d31a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ssh-wrapper.py

+ 1 - 1
ssh-wrapper.py

@@ -46,7 +46,7 @@ for maybe in allowed:
 			print('Could not execute plugin ("%s"): %s' % (' '.join(cmdline), exc))
 			print('Could not execute plugin ("%s"): %s' % (' '.join(cmdline), exc))
 			sys.exit(3)
 			sys.exit(3)
 		else:
 		else:
-			print(cmd.communicate()[0].rstrip())
+			print(cmd.communicate()[0].rstrip().decode('utf-8'))
 			sys.exit(cmd.returncode)
 			sys.exit(cmd.returncode)
 
 
 print('%s: No allowed command found!' % sys.argv[0])
 print('%s: No allowed command found!' % sys.argv[0])