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/auth.c | |
parent | cde63a0b937f284da8b2903ae196fc5bfb998ea8 (diff) |
uid_t and gid_t, and use %u
Diffstat (limited to 'usr.sbin/pppd/auth.c')
-rw-r--r-- | usr.sbin/pppd/auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index f779896bf73..50de16d37f0 100644 --- a/usr.sbin/pppd/auth.c +++ b/usr.sbin/pppd/auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.15 1998/05/08 04:52:18 millert Exp $ */ +/* $OpenBSD: auth.c,v 1.16 1999/08/06 20:41:07 deraadt Exp $ */ /* * auth.c - PPP authentication and phase control. @@ -38,7 +38,7 @@ #if 0 static char rcsid[] = "Id: auth.c,v 1.37 1998/03/26 04:46:03 paulus Exp $"; #else -static char rcsid[] = "$OpenBSD: auth.c,v 1.15 1998/05/08 04:52:18 millert Exp $"; +static char rcsid[] = "$OpenBSD: auth.c,v 1.16 1999/08/06 20:41:07 deraadt Exp $"; #endif #endif @@ -1491,7 +1491,7 @@ auth_script(script) if ((pw = getpwuid(getuid())) != NULL && pw->pw_name != NULL) user_name = pw->pw_name; else { - sprintf(struid, "%d", getuid()); + sprintf(struid, "%u", getuid()); user_name = struid; } sprintf(strspeed, "%d", baud_rate); |