Don't trust the plugin

This commit is contained in:
Roy Marples 2007-07-05 08:39:32 +00:00
parent 31a9682c98
commit 7de9a73841

View File

@ -153,6 +153,9 @@ void rc_plugin_run (rc_hook_t hook, const char *value)
retval = plugin->hook (hook, value); retval = plugin->hook (hook, value);
fclose (rc_environ_fd); fclose (rc_environ_fd);
rc_environ_fd = NULL; rc_environ_fd = NULL;
/* Just in case the plugin sets this to false */
rc_in_plugin = true;
exit (retval); exit (retval);
} else { } else {
char buffer[RC_LINEBUFFER]; char buffer[RC_LINEBUFFER];