diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-10-22 03:43:34 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-10-22 03:43:34 +0000 |
commit | eea42f60d41405cc61e36dd30dbffc44c806f899 (patch) | |
tree | e0ae98a91963d59a60b98d87cf8180974b1ece4a /usr.bin/chpass | |
parent | 36f3371a8f836c6bc7b64335afe1ddf23bb94977 (diff) | |
download | FreeBSD-src-eea42f60d41405cc61e36dd30dbffc44c806f899.zip FreeBSD-src-eea42f60d41405cc61e36dd30dbffc44c806f899.tar.gz |
*blush* Whoops: got the format strings wrong.
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r-- | usr.bin/chpass/pw_copy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/chpass/pw_copy.c b/usr.bin/chpass/pw_copy.c index b2c234c..fa77f05 100644 --- a/usr.bin/chpass/pw_copy.c +++ b/usr.bin/chpass/pw_copy.c @@ -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 : "", |