summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-10-30 14:54:35 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-10-30 14:54:35 +0000
commite1b87fc110b43a3e496960f51f7c838ac5a144c5 (patch)
treec019fd6c45f26c25f1a636d9549e2ae68112903b /lib/libc/gen
parentde5109bed6c7eba5ed2375c95c78e6f53ec9f9d4 (diff)
Revert this va_copy addition, it cannot work on macppc (which is the
only arch where va_copy is currently required), current version of va_copy uses alloca, but since the results of the va_copy are not used here, only after return, stack trashing will occur. This will have to be revised again for gcc 3.2 support on powerpc.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/auth_subr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/gen/auth_subr.c b/lib/libc/gen/auth_subr.c
index e6faaa09efa..1da9ebb4149 100644
--- a/lib/libc/gen/auth_subr.c
+++ b/lib/libc/gen/auth_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_subr.c,v 1.18 2002/10/24 17:13:36 drahn Exp $ */
+/* $OpenBSD: auth_subr.c,v 1.19 2002/10/30 14:54:34 drahn Exp $ */
/*-
* Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc.
@@ -129,9 +129,7 @@ static va_list nilap;
* Quick one liners that only exist to keep auth_session_t opaque
*/
void auth_setstate(auth_session_t *as, int s){ as->state = s; }
-void auth_set_va_list(auth_session_t *as, va_list ap) {
- va_copy(as->ap, ap);
-}
+void auth_set_va_list(auth_session_t *as, va_list ap) { as->ap = ap; }
int auth_getstate(auth_session_t *as) { return (as->state); }
struct passwd *auth_getpwd(auth_session_t *as) { return (as->pwd); }