Browse code

core: mpath aliased to loadpath (for K compatibility)

- accepts now loadpath="searchpath" (K stype)

Daniel-Constantin Mierla authored on 29/05/2009 10:22:44
Showing 2 changed files
... ...
@@ -407,7 +407,7 @@ SERVER_ID     "server_id"
407 407
 CFG_DESCRIPTION		"description"|"descr"|"desc"
408 408
 
409 409
 LOADMODULE	loadmodule
410
-LOADPATH	loadpath
410
+LOADPATH	"loadpath"|"mpath"
411 411
 MODPARAM        modparam
412 412
 
413 413
 /* values */
... ...
@@ -1410,6 +1410,12 @@ module_stm:
1410 1410
 		mods_dir = $2;
1411 1411
 	}
1412 1412
 	| LOADPATH error	{ yyerror("string expected"); }
1413
+	| LOADPATH EQUAL STRING {
1414
+		DBG("loading modules under %s\n", $3);
1415
+		printf("loading modules under %s\n", $3);
1416
+		mods_dir = $3;
1417
+	}
1418
+	| LOADPATH EQUAL error	{ yyerror("string expected"); }
1413 1419
 	| MODPARAM LPAREN STRING COMMA STRING COMMA STRING RPAREN {
1414 1420
 		if (set_mod_param_regex($3, $5, PARAM_STRING, $7) != 0) {
1415 1421
 			 yyerror("Can't set module parameter");