summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/sh.c
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/sh.c
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/sh.c')
-rw-r--r--contrib/tcsh/sh.c2
1 files changed, 1 insertions, 1 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);
OpenPOWER on IntegriCloud