mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-08 09:01:35 +03:00
Jakub's fix to cons.saver
This commit is contained in:
parent
f149bf7733
commit
7ca312db48
@ -167,7 +167,7 @@ char *detect_console (void)
|
|||||||
!isdigit(tty_name[len - 1]))
|
!isdigit(tty_name[len - 1]))
|
||||||
return "Doesn't look like console";
|
return "Doesn't look like console";
|
||||||
|
|
||||||
sprintf (vcs_name, "/dev/vcsa%c", tty_name [len-1]);
|
sprintf (vcs_name, "/dev/vcsa%s", tty_name + xlen - 1);
|
||||||
vcs_fd = check_file (vcs_name, 0, &msg);
|
vcs_fd = check_file (vcs_name, 0, &msg);
|
||||||
console_fd = check_file (tty_name, 1, &msg);
|
console_fd = check_file (tty_name, 1, &msg);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user