* Prototypes for local functions
*/
static int check_timestamp __P((void));
+static int user_is_exempt __P((void));
static void check_passwd __P((void));
static void update_timestamp __P((void));
static void reminder __P((void));
register int rtn;
mode_t oldmask;
+ if (user_is_exempt()) /* some users don't need to enter a passwd */
+ return;
+
oldmask = umask(077); /* make sure the timestamp files are private */
rtn = check_timestamp();
+/********************************************************************
+ *
+ * user_is_exempt()
+ *
+ * this function checks the user is exempt from supplying a password
+ * XXX - should check more that just real gid.
+ */
+
+static int user_is_exempt()
+{
+#ifdef EXEMPTGROUP
+ return ((getgid() == EXEMPTGROUP));
+#else
+ return (1);
+#endif
+}
+
+
+
/********************************************************************
*
* check_timestamp()