From e97f7bab5141dda89bad7e94dd7b25d65069d010 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 8 Jun 2004 03:33:46 +0000
Subject: [PATCH] Fix reversal of RLogin header fields... the username on the
 client (Password) comes first.  Currently, support in Synchronet for this
 requires the USE_2ND_RLOGIN option to be set in the [BBS] section of the .ini
 file.

I would like to make this the default for 3.20 any objections, speak up now.
---
 src/syncterm/rlogin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/syncterm/rlogin.c b/src/syncterm/rlogin.c
index ddb318aa9c..5a09f511a6 100644
--- a/src/syncterm/rlogin.c
+++ b/src/syncterm/rlogin.c
@@ -91,8 +91,8 @@ int rlogin_connect(char *addr, int port, char *ruser, char *passwd)
 	}
 
 	rlogin_send("",1,1000);
-	rlogin_send(ruser,strlen(ruser)+1,1000);
 	rlogin_send(passwd,strlen(passwd)+1,1000);
+	rlogin_send(ruser,strlen(ruser)+1,1000);
 	rlogin_send("ansi-bbs/9600",14,1000);
 	return(0);
 }
-- 
GitLab