summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-10-20 08:44:14 +0000
committerru <ru@FreeBSD.org>2008-10-20 08:44:14 +0000
commit604182d32eeb85fd6e8cc77ef635232c80913a42 (patch)
treeaecf1a0c033935b6390b8364db8db356709ef939 /contrib/tcsh
parentf61c6b342a5f45323d6c49056627d427a73551e3 (diff)
downloadFreeBSD-src-604182d32eeb85fd6e8cc77ef635232c80913a42.zip
FreeBSD-src-604182d32eeb85fd6e8cc77ef635232c80913a42.tar.gz
Actually fix pty detection for autologout setting.
(The fix has been submitted upstream.)
Diffstat (limited to 'contrib/tcsh')
-rw-r--r--contrib/tcsh/sh.c2
-rw-r--r--contrib/tcsh/tc.const.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tcsh/sh.c b/contrib/tcsh/sh.c
index 89056f5..1bbb1cb 100644
--- a/contrib/tcsh/sh.c
+++ b/contrib/tcsh/sh.c
@@ -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);
diff --git a/contrib/tcsh/tc.const.c b/contrib/tcsh/tc.const.c
index d63de6f..4ed1212 100644
--- a/contrib/tcsh/tc.const.c
+++ b/contrib/tcsh/tc.const.c
@@ -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' };
OpenPOWER on IntegriCloud