diff options
Diffstat (limited to 'login-utils')
-rw-r--r-- | login-utils/vipw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/login-utils/vipw.c b/login-utils/vipw.c index cc41b86b1..fea28ac2e 100644 --- a/login-utils/vipw.c +++ b/login-utils/vipw.c @@ -297,13 +297,11 @@ edit_file(int is_shadow) (void)fprintf(stderr, _("%s: no changes made\n"), progname); pw_error((char *)NULL, 0, 0); } + /* see pw_lock() where we create the file with mode 600 */ if (!is_shadow) chmod(tmp_file, 0644); -#if 0 - /* if shadow file, then mode is 0600 now */ else chmod(tmp_file, 0400); -#endif pw_unlock(); } |