From 1dbeb99d185a7375744877b7a8e1d08b62e5ffe2 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 27 Jun 2002 22:21:51 +0000 Subject: %u for uid/gid; millert ok --- lib/libutil/passwd.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/libutil') 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 @@ -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; -- cgit v1.2.3