+ if (mode[0] != 'r')
+ return fopen(file, mode);
+ else {
+ char *full_path = find_file(file);
+ if (full_path == NULL)
+ return NULL;
+ FILE *fp = NULL;
+ fp = fopen(full_path, mode);
+ free(full_path);
+ return fp;
+ }
+}
+
+int parse_config_file(struct command_context *cmd_ctx)
+{
+ int retval;