Article delegate-en/2010 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: how to get the server/client info in the ftp-data filter
02 Dec 2002 17:18:03 GMT (Yutaka Sato)


On 12/02/02(19:55) you "Wu Jiafu" <> wrote
in <_A2009@delegate-en.ML_>
 |Thanks a lot for your kindly help. But after applying the patch, it does not
 |work so well:
 |I added one line to the patched ftp.c, then it seems work:
 |Since I am not quite understanding the structure of delegate, there might be
 |lots of side-effects of this changing. Would you please have a look?

Thanks for your notice.  I tried to minimize the patch before sending
it out, to do over minimization and sent it out without testing X-)
I remember that the patch for ftp.c:FTP_data_relay() was "if ... else"
statement originally.  So I'll do like this in the official release.

  	xc = 0;
  	Verbose("FTP data-relay(%d,%d): bufsize=%d\n",src,dst,size);
+ 	strcpy(dataConn->dd_selector,D_SELECTOR);
+ 	if( FS->fs_host[0] )
+ 		wordScan(FS->fs_host,dataConn->sv.p_host); /* set REAL_HOST */
+ 	else
  	if( REAL_HOST[0] == 0 )
  		strcpy(dataConn->sv.p_host,"-"); /* for DST_PROTO */
  	else	strcpy(dataConn->sv.p_host,REAL_HOST);

  @ @ Yutaka Sato <>
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]