aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loginutils/adduser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
index d0a870c54..8a5d902e6 100644
--- a/loginutils/adduser.c
+++ b/loginutils/adduser.c
@@ -127,8 +127,8 @@ int adduser_main(int argc UNUSED_PARAM, char **argv)
127 free(p); 127 free(p);
128 128
129#if ENABLE_FEATURE_SHADOWPASSWDS 129#if ENABLE_FEATURE_SHADOWPASSWDS
130 p = xasprintf("!:%u:0:99999:7:::", (unsigned)(time(NULL) / 86400)); /* sp->sp_lstchg */ 130 p = xasprintf("!:%u:0:99999:7:::", (unsigned)(time(NULL) / 86400)); /* sp->sp_lstchg */
131 /* Ignore errors: if file is missing we suppose admin doesn't want it */ 131 /* ignore errors: if file is missing we suppose admin doesn't want it */
132 update_passwd(bb_path_shadow_file, pw.pw_name, p, NULL); 132 update_passwd(bb_path_shadow_file, pw.pw_name, p, NULL);
133 if (ENABLE_FEATURE_CLEAN_UP) 133 if (ENABLE_FEATURE_CLEAN_UP)
134 free(p); 134 free(p);
@@ -140,7 +140,7 @@ int adduser_main(int argc UNUSED_PARAM, char **argv)
140 if (!usegroup) 140 if (!usegroup)
141 addgroup_wrapper(&pw); 141 addgroup_wrapper(&pw);
142 142
143 /* Clear the umask for this process so it doesn't 143 /* clear the umask for this process so it doesn't
144 * screw up the permissions on the mkdir and chown. */ 144 * screw up the permissions on the mkdir and chown. */
145 umask(0); 145 umask(0);
146 if (!(option_mask32 & OPT_DONT_MAKE_HOME)) { 146 if (!(option_mask32 & OPT_DONT_MAKE_HOME)) {