23 lines
658 B
Plaintext
23 lines
658 B
Plaintext
$OpenBSD: patch-regex,v 1.1.1.1 2000/02/28 09:27:02 camield Exp $
|
|
|
|
regex is only defined in the cmd struct when HAVE_REGEX is defined
|
|
|
|
--- ftp-proxy/ftp-cmds.c.orig Fri Feb 11 15:23:59 2000
|
|
+++ ftp-proxy/ftp-cmds.c Fri Feb 11 15:25:33 2000
|
|
@@ -371,6 +371,7 @@ static void cmds_user(CONTEXT *ctx, char
|
|
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) {
|
|
@@ -383,6 +384,7 @@ static void cmds_user(CONTEXT *ctx, char
|
|
ctx->cli_ctrl->peer, p);
|
|
return;
|
|
}
|
|
+#endif
|
|
break;
|
|
}
|
|
|