Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/lib/libtelnet Pull up revision 1.13 (requested by lukem i...
details: https://anonhg.NetBSD.org/src/rev/78a042c1104c
branches: netbsd-3
changeset: 576526:78a042c1104c
user: tron <tron%NetBSD.org@localhost>
date: Sat Jul 09 22:55:59 2005 +0000
description:
Pull up revision 1.13 (requested by lukem in ticket #536):
Use getpwnam_r. From john nemeth.
diffstat:
lib/libtelnet/kerberos5.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 5c7772ba29a8 -r 78a042c1104c lib/libtelnet/kerberos5.c
--- a/lib/libtelnet/kerberos5.c Sat Jul 09 22:55:53 2005 +0000
+++ b/lib/libtelnet/kerberos5.c Sat Jul 09 22:55:59 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kerberos5.c,v 1.12 2003/08/07 16:44:55 agc Exp $ */
+/* $NetBSD: kerberos5.c,v 1.12.6.1 2005/07/09 22:55:59 tron Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -421,15 +421,16 @@
break;
case KRB_FORWARD:{
- struct passwd *pwd;
+ struct passwd pws, *pwd;
+ char pwbuf[1024];
char ccname[1024]; /* XXX */
krb5_data inbuf;
krb5_ccache ccache;
inbuf.data = (char *) data;
inbuf.length = cnt;
- pwd = getpwnam(UserNameRequested);
- if (pwd == NULL)
+ if (getpwnam_r(UserNameRequested, &pws, pwbuf,
+ sizeof(pwbuf), &pwd) != 0)
break;
snprintf(ccname, sizeof(ccname),
Home |
Main Index |
Thread Index |
Old Index