few bugs in www

Dudu Rashty +972-2-584848 (RASHTY@hujivms.bitnet)
Mon, 13 Apr 92 18:28 +0300


Message-Id: <9204131528.AA08959@dxmint.cern.ch>
Date:     Mon,  13 Apr 92 18:28 +0300
From: Dudu Rashty +972-2-584848 <RASHTY@hujivms.bitnet>
To: www-talk@nxoc01.cern.ch
Subject:  few bugs in www

Hi,

when i have tried to create a telnet session than

1) it used the rlogin instead of the telnet
2) the way the rlogin is used is wrong.. it sends the command
   RLOGINtelnet /username= ...  WITHOUT THE HOSTNAME


C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C
HTACCESS.C   as it is now
C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C

	BOOL rlogin = strcmp(access, "rlogin");
	.
	.
	.

	if (!rlogin) {			/* telnet */
	    if (user) printf("When you are connected, log in as %s\n", user);
	    sprintf(command, "TELNET %s%s %s",
		port ? "/PORT=" : "",
		port ? port : "",
		hostname);
	} else {
	    sprintf(command, "RLOGIN%s%s%s%s %s", access,
		user ? "/USERNAME=" : "",
		user ? user : "",
		port ? "/PORT=" : "",
		port ? port : "",
		hostname);
	}
	if (TRACE) fprintf(stderr, "HTaccess: Command is: %s\n", command);
	system(command);
	return HT_NO_DATA;		/* Ok - it was done but no data */

C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C
correct code is :
C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C
HTACCESS.C

	BOOL rlogin = strcmp(access, "rlogin");
	.
	.
	.

	if (rlogin) {			/* telnet */
	    if (user) printf("When you are connected, log in as %s\n", user);
	    sprintf(command, "TELNET %s%s %s",
		port ? "/PORT=" : "",
		port ? port : "",
		hostname);
	} else {
	    sprintf(command, "RLOGIN%s%s%s%s %s",
		user ? "/USERNAME=" : "",
		user ? user : "",
		port ? "/PORT=" : "",
		port ? port : "",
		hostname);
	}
	if (TRACE) fprintf(stderr, "HTaccess: Command is: %s\n", command);
	system(command);
	return HT_NO_DATA;		/* Ok - it was done but no data */

C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C


                                              thanks
   	                                       __o     o__
	                                     _ \<,_   _.>/ _
	                                    (_)/ (_) (_) \(_)

                                             d    u   d    u
                                             Hebrew University
                                             Computation Center
                                             Jerusalem, Israel