From 02b8f601e4514ed1bf5c9212d0c83114f1a396ed Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 17 Dec 1997 01:32:28 +0000 Subject: [PATCH] (recv_krb5_auth): swap the order of the `local_user' and the `remote_user' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4211 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/rsh/rshd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appl/rsh/rshd.c b/appl/rsh/rshd.c index aede0b62b..44d3b58f3 100644 --- a/appl/rsh/rshd.c +++ b/appl/rsh/rshd.c @@ -105,8 +105,8 @@ recv_bsd_auth (int s, u_char *buf, pwd = getpwnam(server_username); if (pwd == NULL) fatal(s, "Login incorrect."); - if (iruserok(thataddr.sin_addr.s_addr, pwd->pw_uid == 0, client_username, - server_username)) + if (iruserok(thataddr.sin_addr.s_addr, pwd->pw_uid == 0, + client_username, server_username)) fatal(s, "Login incorrect."); return 0; } @@ -263,9 +263,9 @@ recv_krb5_auth (int s, u_char *buf, syslog_and_die ("krb5_recvauth: %s", krb5_get_err_text(context, status)); - read_str (s, client_username, USERNAME_SZ, "local username"); - read_str (s, cmd, COMMAND_SZ, "command"); read_str (s, server_username, USERNAME_SZ, "remote username"); + read_str (s, cmd, COMMAND_SZ, "command"); + read_str (s, client_username, USERNAME_SZ, "local username"); status = krb5_auth_con_getkey (context, auth_context, &keyblock); if (status) -- 2.11.4.GIT