Cast pw_change and pw_expire to long and fix the format specifier accordingly.
This commit is contained in:
parent
f5dbc00887
commit
15b09e6540
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51032
@ -336,9 +336,9 @@ pline(pw)
|
||||
err(1, "getpwuid");
|
||||
}
|
||||
|
||||
(void)printf("%s:%s:%d:%d:%s:%d:%d:%s:%s:%s\n", pw->pw_name,
|
||||
(void)printf("%s:%s:%d:%d:%s:%ld:%ld:%s:%s:%s\n", pw->pw_name,
|
||||
pw->pw_passwd, pw->pw_uid, pw->pw_gid, pw->pw_class,
|
||||
pw->pw_change, pw->pw_expire, pw->pw_gecos,
|
||||
(long)pw->pw_change, (long)pw->pw_expire, pw->pw_gecos,
|
||||
pw->pw_dir, pw->pw_shell);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user