allow "welcome" as well as "motd" in login.conf

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11903 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2003-03-24 15:57:10 +00:00
parent dd01fbeb67
commit c771f745ac

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997 - 2002 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997 - 2003 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -629,6 +629,10 @@ do_login(const struct passwd *pwd, char *tty, char *ttyn)
continue;
show_file(buf);
}
} else {
str = login_conf_get_string("welcome");
if(str != NULL)
show_file(str);
}
}
add_env("HOME", home_dir);