/* Get system path and filename maximum lengths */
path_max = pathconf(".", _PC_PATH_MAX);
- if (path_max < 1024) {
- path_max = 1024;
+ if (path_max < 2048) {
+ path_max = 2048;
}
name_max = pathconf(".", _PC_NAME_MAX);
- if (name_max < 1024) {
- name_max = 1024;
+ if (name_max < 2048) {
+ name_max = 2048;
}
path_max++; /* add for EOS */
name_max++; /* add for EOS */
return 0; /* error return */
}
}
- if (plugin_save) {
- foreach_dlist(node, &incexe->plugin_list) {
- char *fname = node->c_str();
- Dmsg1(100, "PluginCommand: %s\n", fname);
- ff->top_fname = fname;
- ff->cmd_plugin = true;
- plugin_save(jcr, ff, true);
- ff->cmd_plugin = false;
+ foreach_dlist(node, &incexe->plugin_list) {
+ char *fname = node->c_str();
+ if (!plugin_save) {
+ Jmsg(jcr, M_FATAL, 0, _("Plugin: \"%s\" not found.\n"), fname);
+ return 0;
}
+ Dmsg1(100, "PluginCommand: %s\n", fname);
+ ff->top_fname = fname;
+ ff->cmd_plugin = true;
+ plugin_save(jcr, ff, true);
+ ff->cmd_plugin = false;
}
}
}
findFOPTS *fo = (findFOPTS *)incexe->opts_list.get(j);
ff->flags = fo->flags;
ff->GZIP_level = fo->GZIP_level;
- ff->ignoredir = fo->ignoredir;
ff->fstypes = fo->fstype;
ff->drivetypes = fo->drivetype;