summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-01-19 10:54:44 +0000
committerru <ru@FreeBSD.org>2000-01-19 10:54:44 +0000
commit3710f9234ca41ba0631f279891b13571f246515d (patch)
tree79ce182df70c0259bb0a5ce347677f8dba9a6b3f /lib/libutil
parentbcb6fab38508d8274b83a54d3e897f34c0abc407 (diff)
downloadFreeBSD-src-3710f9234ca41ba0631f279891b13571f246515d.zip
FreeBSD-src-3710f9234ca41ba0631f279891b13571f246515d.tar.gz
Do not set the default terminal type to "su", leave it empty.
PR: bin/5084 Reviewed by: asmodai, davidn, sef
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/login.conf.52
-rw-r--r--lib/libutil/login_class.c6
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/libutil/login.conf.5 b/lib/libutil/login.conf.5
index 0b86490..a0d96df 100644
--- a/lib/libutil/login.conf.5
+++ b/lib/libutil/login.conf.5
@@ -188,7 +188,7 @@ values to which they are to be set.
.It shell prog Session shell to execute rather than the
shell specified in the passwd file. The SHELL environment variable will
contain the shell specified in the password file.
-.It term string su Default terminal type if not able to determine from
+.It term string Default terminal type if not able to determine from
other means.
.It timezone string Default value of $TZ environment variable.
.It umask number 022 Initial umask. Should always have a leading 0 to
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index 2cd65bd..478d9b2 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -41,10 +41,6 @@
#include <sys/rtprio.h>
-#undef UNKNOWN
-#define UNKNOWN "su"
-
-
static struct login_res {
const char *what;
rlim_t (*who)(login_cap_t *, const char *, rlim_t, rlim_t);
@@ -124,7 +120,7 @@ static struct login_vars {
{ "lang", "LANG", NULL },
{ "charset", "MM_CHARSET", NULL },
{ "timezone", "TZ", NULL },
- { "term", "TERM", UNKNOWN },
+ { "term", "TERM", NULL },
{ NULL, NULL, NULL }
};
OpenPOWER on IntegriCloud