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

[DeleGate-En] Re: Question regarding delegate SERVER=exec parameter
27 May 2009 22:13:43 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A4470@delegate-en.ML_> on 05/27/09(07:24:58)
you =?ISO-8859-1?Q?Guilherme_V=EAnere?= <pniiqbdyi-hugik5rombxr.ml@ml.delegate.org> wrote:
 |Is there any restriction on using SERVER=exec as parameter for delegate?
 |
 |When I run it with parameters below, i got error:
 |
 |./linux-dg -P9999 SERVER=exec XFIL=server.pl ADMIN=-root@localhost
 |
 |The erro is this:
 |
 |05/26 15:22:23.49 [15824] 0+0: ERROR protocol inhibited: exec
 |05/26 15:22:23.49 [15824] 0+0: #### ERROR forbidden protocol: exec ####
 |
 |I'm using linux-dg 9.9.3 binary version from the FTP site.
 |
 |How can i set up delegate to run my script on connections to the specified port?

You are right.  It should work as you expect with your configuration.
It has become disabled since 9.8.6-pre1 and can be fixed as the
enclosed patch.  I uploaded 9.9.4-pre3 including the patch.
<URL:ftp://ftp.delegate.org/pub/DeleGate/beta/bin-latest9/>

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

diff -cr delegate9.9.4-pre2/src/service.c delegate9.9.4-pre3/src/service.c
*** delegate9.9.4-pre2/src/service.c	Tue May 12 15:29:51 2009
--- delegate9.9.4-pre3/src/service.c	Thu May 28 04:14:43 2009
***************
*** 281,287 ****
  void scan_PERMITV(Connection *Conn,PCStr(list),const char *protov[]);
  void scan_PERMIT(Connection *Conn,PCStr(protolist))
  {	const char *pn;
! 	const char *pv[64]; /**/
  	int si,pi;
  
  	pi = 0;
--- 281,287 ----
  void scan_PERMITV(Connection *Conn,PCStr(list),const char *protov[]);
  void scan_PERMIT(Connection *Conn,PCStr(protolist))
  {	const char *pn;
! 	const char *pv[NSERVICES]; /**/
  	int si,pi;
  
  	pi = 0;

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