aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil/login_class.c
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-02-05 04:17:14 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-02-05 04:17:14 +0000
commitacf2957e49f798b82c130cbf6e4e5ef986911bba (patch)
treeff841843adb5236ae55a3ff29d97cd9179c2770b /lib/libutil/login_class.c
parentf71291a65edabf05123ac95754778ec67717a463 (diff)
downloadsrc-acf2957e49f798b82c130cbf6e4e5ef986911bba.tar.gz
src-acf2957e49f798b82c130cbf6e4e5ef986911bba.zip
login.conf(5): split MAIL env var out into a "mail" capability
This allows it to be easily suppressed in, e.g., the "daemon" class where it will not be properly expanded. This is a part of D21481. Submitted by: Andrew Gierth <andrew_tao173.riddles.org.uk>
Notes
Notes: svn path=/head/; revision=357560
Diffstat (limited to 'lib/libutil/login_class.c')
-rw-r--r--lib/libutil/login_class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index 532b2bed3059..fd0b232d0a43 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -131,6 +131,7 @@ static struct login_vars {
}, envars[] = {
{ "lang", "LANG", NULL, 1},
{ "charset", "MM_CHARSET", NULL, 1},
+ { "mail", "MAIL", NULL, 1},
{ "timezone", "TZ", NULL, 1},
{ "term", "TERM", NULL, 0},
{ NULL, NULL, NULL, 0}