summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-06-23 03:03:15 +0000
committerderaadt <deraadt@openbsd.org>2002-06-23 03:03:15 +0000
commit02d24a42ddf7b439b1ad20ac7886c4079aa165da (patch)
treefb5cd5bfd22f8511639f9780ce5af8b41722be92 /lib/libc/gen
parentuid_t and gid_t are unsigned (diff)
downloadwireguard-openbsd-02d24a42ddf7b439b1ad20ac7886c4079aa165da.tar.xz
wireguard-openbsd-02d24a42ddf7b439b1ad20ac7886c4079aa165da.zip
uid_t is unsigned
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/authenticate.c4
-rw-r--r--lib/libc/gen/login_cap.c4
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);
}