diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-27 10:21:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-27 10:21:36 +0000 |
commit | cdbde757a7637fb84cdd320598a7d040808fc617 (patch) | |
tree | 48bfb756d6d898aee229b8345fffd204fd609b1b | |
parent | 0c641f0cb49a6176c4b29213ea2b1c41e5b0aad2 (diff) |
%u and uid/gid
-rw-r--r-- | lib/libc/gen/login_cap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/login_cap.c b/lib/libc/gen/login_cap.c index a06558a9d77..b0b4a4e7af5 100644 --- a/lib/libc/gen/login_cap.c +++ b/lib/libc/gen/login_cap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_cap.c,v 1.11 2002/06/23 03:03:37 deraadt Exp $ */ +/* $OpenBSD: login_cap.c,v 1.12 2002/06/27 10:21:35 deraadt Exp $ */ /*- * Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved. @@ -643,14 +643,14 @@ setusercontext(lc, pwd, uid, flags) if (flags & LOGIN_SETGROUP) { if (setgid(pwd->pw_gid) < 0) { - syslog(LOG_ERR, "setgid(%d): %m", pwd->pw_gid); + syslog(LOG_ERR, "setgid(%u): %m", (u_int)pwd->pw_gid); login_close(flc); return (-1); } if (initgroups(pwd->pw_name, pwd->pw_gid) < 0) { - syslog(LOG_ERR, "initgroups(%s,%d): %m", - pwd->pw_name, pwd->pw_gid); + syslog(LOG_ERR, "initgroups(%s,%u): %m", + pwd->pw_name, (u_int)pwd->pw_gid); login_close(flc); return (-1); } |