Fix passwd entries, from old format to new.

Change-Id: I78278f0cdc6b9b87bf9b3a14970a462037589d87
This commit is contained in:
Ben Gras
2014-06-17 17:51:52 +02:00
committed by Lionel Sambuc
parent cbb688a05d
commit fcce231cb7
3 changed files with 14 additions and 22 deletions

View File

@@ -439,15 +439,9 @@ main(int argc, char *argv[])
* Create original format password file entry.
*/
if (makeold) {
#if defined(__minix)
(void)fprintf(oldfp, "%s:##%s:%d:%d:%s:%s:%s\n",
pwd.pw_name, pwd.pw_name, pwd.pw_uid, pwd.pw_gid,
pwd.pw_gecos, pwd.pw_dir, pwd.pw_shell);
#else
(void)fprintf(oldfp, "%s:*:%d:%d:%s:%s:%s\n",
pwd.pw_name, pwd.pw_uid, pwd.pw_gid, pwd.pw_gecos,
pwd.pw_dir, pwd.pw_shell);
#endif /* defined(__minix) */
if (ferror(oldfp))
wr_error(oldpwdfile);
}