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:
@@ -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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -629,6 +629,10 @@ do_login(const struct passwd *pwd, char *tty, char *ttyn)
|
|||||||
continue;
|
continue;
|
||||||
show_file(buf);
|
show_file(buf);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
str = login_conf_get_string("welcome");
|
||||||
|
if(str != NULL)
|
||||||
|
show_file(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_env("HOME", home_dir);
|
add_env("HOME", home_dir);
|
||||||
|
Reference in New Issue
Block a user