diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-23 03:03:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-23 03:03:38 +0000 |
commit | 66b10192a6c1f61e3bd3d3645bf3178ae7844f41 (patch) | |
tree | 55cb79cd05b8a1b8dda59c7df210821b2fb9f2e2 /lib/libc | |
parent | 513871f2b2518f6347c3717a1758670a6bcfab87 (diff) |
uid_t is unsigned
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/authenticate.c | 4 | ||||
-rw-r--r-- | lib/libc/gen/login_cap.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/authenticate.c b/lib/libc/gen/authenticate.c index a7903d3c0d0..55d84620929 100644 --- a/lib/libc/gen/authenticate.c +++ b/lib/libc/gen/authenticate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authenticate.c,v 1.10 2002/05/24 21:22:37 deraadt Exp $ */ +/* $OpenBSD: authenticate.c,v 1.11 2002/06/23 03:03:37 deraadt Exp $ */ /*- * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. @@ -189,7 +189,7 @@ auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type) pwd = getpwnam(name); else { if ((pwd = getpwuid(getuid())) == NULL) { - syslog(LOG_ERR, "no such user id %d", getuid()); + syslog(LOG_ERR, "no such user id %u", getuid()); _warnx("cannot approve who we don't recognize"); return (0); } diff --git a/lib/libc/gen/login_cap.c b/lib/libc/gen/login_cap.c index 4ac866e3102..a06558a9d77 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.10 2002/02/16 21:27:23 millert Exp $ */ +/* $OpenBSD: login_cap.c,v 1.11 2002/06/23 03:03:37 deraadt Exp $ */ /*- * Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved. @@ -667,7 +667,7 @@ setusercontext(lc, pwd, uid, flags) if (flags & LOGIN_SETUSER) { (void) seteuid(uid); /* just in case */ if (setuid(uid) < 0) { - syslog(LOG_ERR, "setuid(%d): %m", uid); + syslog(LOG_ERR, "setuid(%u): %m", uid); login_close(flc); return (-1); } |