commit d1671e0edd1228f842fb6ce0bc41559f948964c8
parent 37b40ce3e1eddf2981f0c288533e3d2561a5cf1b
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Tue, 15 Dec 2020 02:35:45 +0100
Fix variable type check
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbin/user-term.py b/sbin/user-term.py
@@ -24,7 +24,8 @@ def exec_terminal(uid, gid, home, terminal, term_env, slave_exe):
assert isinstance(terminal, (list, tuple))
assert all(isinstance(s, str) for s in terminal)
assert len(terminal)
- assert isinstance(shell, str)
+ assert isinstance(slave_exe, list)
+ assert all(isinstance(s, str) for s in slave_exe)
master, slave = os.openpty()
if os.fork():
# parent