From e3c5dd2dd9abc3d9fe1fee4c4054c4c2a7f11395 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 20 Jul 2005 16:08:12 +0000 Subject: 21498: Add zsh/newuser module --- Src/init.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Src/init.c') diff --git a/Src/init.c b/Src/init.c index 6ec0370a3..c6fd0e4d9 100644 --- a/Src/init.c +++ b/Src/init.c @@ -948,8 +948,20 @@ run_init_scripts(void) #ifdef GLOBAL_ZSHENV source(GLOBAL_ZSHENV); #endif + if (isset(RCS) && unset(PRIVILEGED)) + { + /* + * Always attempt to load the newuser module to perform + * checks for new zsh users. Don't care if we can't load it. + */ + if (load_module_silence("zsh/newuser", 1)) { + /* Unload it immediately. */ + unload_named_module("zsh/newuser", "zsh", 1); + } + sourcehome(".zshenv"); + } if (islogin) { #ifdef GLOBAL_ZPROFILE if (isset(RCS) && isset(GLOBALRCS)) -- cgit 1.4.1