summaryrefslogtreecommitdiff
path: root/Src/init.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-07-20 16:08:12 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-07-20 16:08:12 +0000
commite3c5dd2dd9abc3d9fe1fee4c4054c4c2a7f11395 (patch)
tree0088cf78f6694d0c7f7fe5c8380298936dac36d3 /Src/init.c
parenteb86b42f304ec29a885a047ef5c681ec2ab40d1d (diff)
downloadzsh-e3c5dd2dd9abc3d9fe1fee4c4054c4c2a7f11395.tar.gz
zsh-e3c5dd2dd9abc3d9fe1fee4c4054c4c2a7f11395.zip
21498: Add zsh/newuser module
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c12
1 files changed, 12 insertions, 0 deletions
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))