mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	An offhand comment from Russell made me realize that the configuration file
caching would not work properly for users.conf and any other file read from more than one place. I needed to add the filename which requested the config file to get it to work properly. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -407,7 +407,7 @@ static int destroy_curl(const char *url, const char *unused, const char *keyfiel | ||||
| } | ||||
|  | ||||
|  | ||||
| static struct ast_config *config_curl(const char *url, const char *unused, const char *file, struct ast_config *cfg, struct ast_flags flags, const char *sugg_incl) | ||||
| static struct ast_config *config_curl(const char *url, const char *unused, const char *file, struct ast_config *cfg, struct ast_flags flags, const char *sugg_incl, const char *who_asked) | ||||
| { | ||||
| 	struct ast_str *query; | ||||
| 	char buf1[200]; | ||||
| @@ -463,7 +463,7 @@ static struct ast_config *config_curl(const char *url, const char *unused, const | ||||
| 		} | ||||
|  | ||||
| 		if (!strcmp(var_name, "#include")) { | ||||
| 			if (!ast_config_internal_load(var_val, cfg, loader_flags, "")) | ||||
| 			if (!ast_config_internal_load(var_val, cfg, loader_flags, "", who_asked)) | ||||
| 				return NULL; | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user