summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-10 21:27:11 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-10 21:27:11 +0000
commitf79aeffe3b8f58c3d7da0fba28f8eba867079e6d (patch)
tree9583607ac50b028793d73700c868dc88ed8ae5f5
parentc5dbf7fdc94708670b941c84815b78f61e2cb329 (diff)
- markus@cvs.openbsd.org 2001/02/07 22:35:46
[auth1.c auth2.c sshd.c] move k_setpag() to a central place; ok dugsong@
-rw-r--r--ChangeLog8
-rw-r--r--auth1.c10
-rw-r--r--auth2.c9
-rw-r--r--sshd.c7
4 files changed, 16 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index 4aa2ddfa..bdd2bfc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+20010211
+ - (bal) OpenBSD Sync
+ - markus@cvs.openbsd.org 2001/02/07 22:35:46
+ [auth1.c auth2.c sshd.c]
+ move k_setpag() to a central place; ok dugsong@
+
20010210
- (djm) Sync sftp and scp stuff from OpenBSD:
- djm@cvs.openbsd.org 2001/02/07 03:55:13
@@ -3780,4 +3786,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
-$Id: ChangeLog,v 1.712 2001/02/10 00:37:17 mouring Exp $
+$Id: ChangeLog,v 1.713 2001/02/10 21:27:11 mouring Exp $
diff --git a/auth1.c b/auth1.c
index 1feedc9a..ee7aac48 100644
--- a/auth1.c
+++ b/auth1.c
@@ -10,7 +10,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth1.c,v 1.14 2001/01/22 23:06:39 markus Exp $");
+RCSID("$OpenBSD: auth1.c,v 1.15 2001/02/07 22:35:45 markus Exp $");
#ifdef HAVE_OSF_SIA
# include <sia.h>
@@ -389,14 +389,6 @@ do_authentication()
setproctitle("%s", user);
-#ifdef AFS
- /* If machine has AFS, set process authentication group. */
- if (k_hasafs()) {
- k_setpag();
- k_unlog();
- }
-#endif /* AFS */
-
/* Verify that the user is a valid user. */
pw = getpwnam(user);
if (pw && allowed_user(pw)) {
diff --git a/auth2.c b/auth2.c
index f2f4812e..bc8c99bd 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth2.c,v 1.36 2001/02/04 15:32:22 stevesk Exp $");
+RCSID("$OpenBSD: auth2.c,v 1.37 2001/02/07 22:35:46 markus Exp $");
#ifdef HAVE_OSF_SIA
# include <sia.h>
@@ -126,13 +126,6 @@ do_authentication2()
if (options.challenge_reponse_authentication)
options.kbd_interactive_authentication = 1;
-#ifdef AFS
- /* If machine has AFS, set process authentication group. */
- if (k_hasafs()) {
- k_setpag();
- k_unlog();
- }
-#endif
dispatch_init(&protocol_error);
dispatch_set(SSH2_MSG_SERVICE_REQUEST, &input_service_request);
dispatch_run(DISPATCH_BLOCK, &authctxt->success, authctxt);
diff --git a/sshd.c b/sshd.c
index 22eabcda..88ce7902 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1148,6 +1148,13 @@ main(int ac, char **av)
options.kerberos_authentication = 0;
}
#endif /* KRB4 */
+#ifdef AFS
+ /* If machine has AFS, set process authentication group. */
+ if (k_hasafs()) {
+ k_setpag();
+ k_unlog();
+ }
+#endif /* AFS */
packet_set_nonblocking();