You can use --with-regex[=PATH] when you run configure or change the file ftp-cmds.c. I changed the file so that the area around line 375 looks like: /* ** Abort any previous service */ client_reinit(); /* ** Check for a RegEx constraint on the USER command */ cmds_set_allow(config_str(NULL, "ValidCommands", NULL)); for (cmd = cmdlist; cmd->name != NULL; cmd++) { if (strcasecmp("USER", cmd->name) != 0) continue; #if defined(HAVE_REGEX) if (cmd->regex == NULL) break; if ((p = cmds_reg_exec(cmd->regex, arg)) != NULL) { client_respond(501, NULL, "'USER': syntax error in arguments"); syslog_write(U_WRN, "bad arg '%.128s'%s for " "'USER' from %s: %s", arg, (strlen(arg) > 128) ? "..." : "", ctx->cli_ctrl->peer, p); return; } #endif break; } /* ** Check for permission and existence of "magic" ** destination address and port information */ The preprocessor directives may also work if the exclusion is larger but I have not tested it.
-----Original Message----- From: Christophe Zwecker [SMTP:doc@zwecker.de] Sent: Tuesday, January 11, 2000 7:59 PM To: proxy-suite@suse.com Subject: [proxy-suite] Compile problem
Hi,
I use:
proxy-suite-1.7 pgcc-2.95 19990728 on Mandrake 6.1
when I do make I get:
gcc -g -O2 -c -I. -I.. -I../common ftp-cmds.c ftp-cmds.c: In function `cmds_user': ftp-cmds.c:374: structure has no member named `regex' ftp-cmds.c:376: structure has no member named `regex' ftp-cmds.c:376: warning: assignment makes pointer from integer without a cast make[1]: *** [ftp-cmds.o] Error 1 make[1]: Leaving directory `/usr/src/proxy-suite-1.7/ftp-proxy' make: *** [all] Error 1
any ideas ?
thx alot ! -- Christophe Zwecker mail: doc@zwecker.de Hamburg, Germany fon: +49 179 3994867
UNIX is user-friendly. It's just not ignorant-friendly and idiot-friendly.Build a system even a fool can use,and only a fool will want to use it.
participants (1)
-
Lieurance, Cary