mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 19:43:41 +00:00
*blush* Whoops: got the format strings wrong.
This commit is contained in:
parent
900520ed02
commit
fac16cb516
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19089
@ -65,8 +65,8 @@ pw_copy(ffd, tfd, pw)
|
||||
|
||||
snprintf(uidstr, sizeof(uidstr), "%d", pw->pw_uid);
|
||||
snprintf(gidstr, sizeof(gidstr), "%d", pw->pw_gid);
|
||||
snprintf(chgstr, sizeof(chgstr), "%lu", pw->pw_change);
|
||||
snprintf(expstr, sizeof(expstr), "%lu", pw->pw_expire);
|
||||
snprintf(chgstr, sizeof(chgstr), "%ld", pw->pw_change);
|
||||
snprintf(expstr, sizeof(expstr), "%ld", pw->pw_expire);
|
||||
|
||||
if (!(from = fdopen(ffd, "r")))
|
||||
pw_error(_PATH_MASTERPASSWD, 1, 1);
|
||||
@ -96,7 +96,7 @@ pw_copy(ffd, tfd, pw)
|
||||
goto err;
|
||||
continue;
|
||||
}
|
||||
(void)fprintf(to, "%s:%s:%s:%s:%s:%ld:%ld:%s:%s:%s\n",
|
||||
(void)fprintf(to, "%s:%s:%s:%s:%s:%s:%s:%s:%s:%s\n",
|
||||
pw->pw_name, pw->pw_passwd,
|
||||
pw->pw_fields & _PWF_UID ? uidstr : "",
|
||||
pw->pw_fields & _PWF_GID ? gidstr : "",
|
||||
@ -117,7 +117,7 @@ pw_copy(ffd, tfd, pw)
|
||||
pw_error(NULL, 0, 1);
|
||||
} else
|
||||
#endif /* YP */
|
||||
(void)fprintf(to, "%s:%s:%s:%s:%s:%ld:%ld:%s:%s:%s\n",
|
||||
(void)fprintf(to, "%s:%s:%s:%s:%s:%s:%s:%s:%s:%s\n",
|
||||
pw->pw_name, pw->pw_passwd,
|
||||
pw->pw_fields & _PWF_UID ? uidstr : "",
|
||||
pw->pw_fields & _PWF_GID ? gidstr : "",
|
||||
|
Loading…
Reference in New Issue
Block a user