Actually fix pty detection for autologout setting.
(The fix has been submitted upstream.)
This commit is contained in:
parent
39f8ee3024
commit
3b8bd8e77a
@ -462,7 +462,7 @@ main(int argc, char **argv)
|
||||
else
|
||||
cp2 = cp;
|
||||
if (!(((Strncmp(cp2, STRtty, 3) == 0) && Isalpha(cp2[3])) ||
|
||||
Strstr(cp, STRslptssl) != NULL)) {
|
||||
Strstr(cp, STRptssl) != NULL)) {
|
||||
if (getenv("DISPLAY") == NULL) {
|
||||
/* NOT on X window shells */
|
||||
setcopy(STRautologout, STRdefautologout, VAR_READWRITE);
|
||||
|
@ -46,7 +46,7 @@ Char STRautomatic[] = { 'a', 'u', 't', 'o', 'm', 'a', 't', 'i', 'c',
|
||||
Char STRhangup[] = { 'h', 'a', 'n', 'g', 'u', 'p', '\0' };
|
||||
Char STRaout[] = { 'a', '.', 'o', 'u', 't', '\0' };
|
||||
Char STRtty[] = { 't', 't', 'y', '\0' };
|
||||
Char STRslptssl[] = { '/', 'p', 't', 's', '/', '\0' };
|
||||
Char STRptssl[] = { 'p', 't', 's', '/', '\0' };
|
||||
Char STRany[] = { 'a', 'n', 'y', '\0' };
|
||||
Char STRstatus[] = { 's', 't', 'a', 't', 'u', 's', '\0' };
|
||||
Char STR0[] = { '0', '\0' };
|
||||
|
Loading…
Reference in New Issue
Block a user