diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-08-06 20:41:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-08-06 20:41:09 +0000 |
commit | abdab9264887b198168dac150a9bbff44a774868 (patch) | |
tree | 26c311697fe239df4698e550f705fd8ef5a9a932 /usr.sbin/pppd/main.c | |
parent | cde63a0b937f284da8b2903ae196fc5bfb998ea8 (diff) |
uid_t and gid_t, and use %u
Diffstat (limited to 'usr.sbin/pppd/main.c')
-rw-r--r-- | usr.sbin/pppd/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c index d183e6b0474..6472fff0893 100644 --- a/usr.sbin/pppd/main.c +++ b/usr.sbin/pppd/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.26 1999/05/03 21:38:08 mickey Exp $ */ +/* $OpenBSD: main.c,v 1.27 1999/08/06 20:41:07 deraadt Exp $ */ /* * main.c - Point-to-Point Protocol main module @@ -23,7 +23,7 @@ #if 0 static char rcsid[] = "Id: main.c,v 1.49 1998/05/05 05:24:17 paulus Exp $"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.26 1999/05/03 21:38:08 mickey Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.27 1999/08/06 20:41:07 deraadt Exp $"; #endif #endif @@ -204,7 +204,7 @@ main(argc, argv) uid = getuid(); privileged = uid == 0; - sprintf(numbuf, "%d", uid); + sprintf(numbuf, "%u", uid); script_setenv("UID", numbuf); /* @@ -288,7 +288,7 @@ main(argc, argv) else p = "(unknown)"; } - syslog(LOG_NOTICE, "pppd %s.%d%s started by %s, uid %d", + syslog(LOG_NOTICE, "pppd %s.%d%s started by %s, uid %u", VERSION, PATCHLEVEL, IMPLEMENTATION, p, uid); /* |