mirror of
https://github.com/omar-polo/gmid.git
synced 2024-10-06 17:27:15 +02:00
add a nice error message in case the `cgi' option is present
was removed with gmid 2.0 but to ease the migration a friendly error message is more useful than a "syntax error".
This commit is contained in:
parent
c38417e32d
commit
6174e65dbe
8
parse.y
8
parse.y
@ -123,7 +123,7 @@ typedef struct {
|
|||||||
|
|
||||||
%token ACCESS ALIAS AUTO
|
%token ACCESS ALIAS AUTO
|
||||||
%token BLOCK
|
%token BLOCK
|
||||||
%token CA CERT CHROOT CLIENT
|
%token CA CERT CGI CHROOT CLIENT
|
||||||
%token DEFAULT
|
%token DEFAULT
|
||||||
%token FACILITY FASTCGI FOR_HOST
|
%token FACILITY FASTCGI FOR_HOST
|
||||||
%token INCLUDE INDEX IPV6
|
%token INCLUDE INDEX IPV6
|
||||||
@ -384,6 +384,11 @@ servopt : ALIAS string {
|
|||||||
free(host->cert_path);
|
free(host->cert_path);
|
||||||
host->cert_path = $2;
|
host->cert_path = $2;
|
||||||
}
|
}
|
||||||
|
| CGI string {
|
||||||
|
free($2);
|
||||||
|
yyerror("`cgi' was removed in gmid 2.0."
|
||||||
|
" Please use fastcgi or proxy instead.");
|
||||||
|
}
|
||||||
| KEY string {
|
| KEY string {
|
||||||
ensure_absolute_path($2);
|
ensure_absolute_path($2);
|
||||||
free(host->key_path);
|
free(host->key_path);
|
||||||
@ -651,6 +656,7 @@ static const struct keyword {
|
|||||||
{"block", BLOCK},
|
{"block", BLOCK},
|
||||||
{"ca", CA},
|
{"ca", CA},
|
||||||
{"cert", CERT},
|
{"cert", CERT},
|
||||||
|
{"cgi", CGI},
|
||||||
{"chroot", CHROOT},
|
{"chroot", CHROOT},
|
||||||
{"client", CLIENT},
|
{"client", CLIENT},
|
||||||
{"default", DEFAULT},
|
{"default", DEFAULT},
|
||||||
|
Loading…
Reference in New Issue
Block a user