Print a long with %ld not %d. (We possibly should be using %j here, but
that can be fixed when the many other warnings here are being fixed.) PR: 39741 Submitted by: Dan Lukes <dan@obluda.cz> MFC after: 1 week
This commit is contained in:
parent
d1a1392d8f
commit
9836536581
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98744
@ -720,7 +720,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
|
||||
errx(EX_NOUSER, "user '%s' disappeared during update", a_name->val);
|
||||
|
||||
grp = GETGRGID(pwd->pw_gid);
|
||||
pw_log(cnf, mode, W_USER, "%s(%ld):%s(%d):%s:%s:%s",
|
||||
pw_log(cnf, mode, W_USER, "%s(%ld):%s(%ld):%s:%s:%s",
|
||||
pwd->pw_name, (long) pwd->pw_uid,
|
||||
grp ? grp->gr_name : "unknown", (long) (grp ? grp->gr_gid : -1),
|
||||
pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell);
|
||||
|
Loading…
Reference in New Issue
Block a user