diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-27 22:21:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-27 22:21:51 +0000 |
commit | 1dbeb99d185a7375744877b7a8e1d08b62e5ffe2 (patch) | |
tree | 1703dd2720559e476861879e8ad43b625ce39c1f /lib | |
parent | 63d8053e95a16d73b351d40c774d440ba2e57099 (diff) |
%u for uid/gid; millert ok
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libutil/passwd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/libutil/passwd.c b/lib/libutil/passwd.c index 68f718b74c4..87d1776a218 100644 --- a/lib/libutil/passwd.c +++ b/lib/libutil/passwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: passwd.c,v 1.34 2002/06/09 22:18:43 fgsch Exp $ */ +/* $OpenBSD: passwd.c,v 1.35 2002/06/27 22:21:50 deraadt Exp $ */ /* * Copyright (c) 1987, 1993, 1994, 1995 @@ -34,7 +34,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$OpenBSD: passwd.c,v 1.34 2002/06/09 22:18:43 fgsch Exp $"; +static const char rcsid[] = "$OpenBSD: passwd.c,v 1.35 2002/06/27 22:21:50 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -483,10 +483,11 @@ pw_copy(ffd, tfd, pw) goto err; continue; } - (void)fprintf(to, "%s:%s:%d:%d:%s:%d:%d:%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, - pw->pw_dir, pw->pw_shell); + (void)fprintf(to, "%s:%s:%u:%u:%s:%d:%d:%s:%s:%s\n", + pw->pw_name, pw->pw_passwd, (u_int)pw->pw_uid, + (u_int)pw->pw_gid, pw->pw_class, pw->pw_change, + pw->pw_expire, pw->pw_gecos, pw->pw_dir, + pw->pw_shell); done = 1; if (ferror(to)) goto err; |