]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - chpass/table.c
Do not backup master.passwd if pwd_mkdb returned an error. This
[pw-darwin.git] / chpass / table.c
index 46a12d180528e2702b325273d8eba5f689e60fee..3363e1d08b4061f490278a3150a6e5482521c766 100644 (file)
@@ -50,7 +50,11 @@ ENTRY list[] = {
        { "class",              p_class,  1,   5, e1,   },
        { "change",             p_change, 1,   6, NULL, },
        { "expire",             p_expire, 1,   6, NULL, },
+#ifdef RESTRICT_FULLNAME_CHANGE                /* do not allow fullname changes */
+       { "full name",          p_gecos,  1,   9, e2,   },
+#else
        { "full name",          p_gecos,  0,   9, e2,   },
+#endif
        { "office phone",       p_gecos,  0,  12, e2,   },
        { "home phone",         p_gecos,  0,  10, e2,   },
        { "location",           p_gecos,  0,   8, e2,   },