From: Kern Sibbald Date: Fri, 3 Sep 2010 15:43:39 +0000 (+0200) Subject: Allow plugin to skip restore if problem X-Git-Tag: Release-7.0.0~1592 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=181ba169a9ab9a668a0229b1ab46f4b81fbc58d1;p=bacula%2Fbacula Allow plugin to skip restore if problem --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 683b51db0c..d235d0c185 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -570,6 +570,9 @@ int plugin_create_file(JCR *jcr, ATTR *attr, BFILE *bfd, int replace) rc, attr->ofname); return CF_ERROR; } + if (rp.create_status == CF_SKIP) { + return CF_SKIP; + } if (rp.create_status == CF_ERROR) { Qmsg1(jcr, M_ERROR, 0, _("Plugin createFile call failed. Returned CF_ERROR file=%s\n"), attr->ofname);