mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Refactor, convert struct tty members to static strings
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
406339e755
commit
e9670b87b3
4 files changed
+8
-14
No files matched your search
+1
-1
@@ -237,7 +237,7 @@ int getty(char *tty, speed_t speed, char *term, char *user)
|
||||
stty(fd, speed);
|
||||
close(fd);
|
||||
|
||||
if (term)
|
||||
if (term && term[0])
|
||||
setenv("TERM", term, 1);
|
||||
|
||||
return do_login(name);
|
||||
|
||||
Reference in new issue
Block a user