Re: A requirement for the current user to own ttys

2017-03-09 Thread Egmont Koblinger
Hi, cons.saver, as you apparently know this, is the helper binary responsible for restoring the contents of the Linux console when you quit mc or press Ctrl+O. A helper is required since the Linux console does not have an "alternate screen" that graphical terminal emulators have. In order to be

A requirement for the current user to own ttys

2017-03-09 Thread Key Offecka
Hi, I am looking at the main (int argc, char **argv) function in src/consaver/cons.saver.c There are calls like st.st_uid != uid fstat (console_fd, ) >= 0 && st.st_uid == uid fstat (console_fd, ) < 0 || st.st_uid != uid The last one is especially strange taking into account that it