From: Marco van Wieringen Date: Mon, 27 Apr 2009 15:10:59 +0000 (+0000) Subject: Added fix for bug #1275 where acl or xattr data is saved for virtual filenames genera... X-Git-Tag: Release-3.0.1~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2df589363f0c60f94ca9d5e856dfaf7cc5fcb178;p=bacula%2Fbacula Added fix for bug #1275 where acl or xattr data is saved for virtual filenames generated by filed plugins. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8753 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index e0c9ba9f46..f098c96ee5 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -580,19 +580,23 @@ int save_file(JCR *jcr, FF_PKT *ff_pkt, bool top_level) #endif /* - * Save ACLs for anything not being a symlink. + * Save ACLs for anything not being a symlink and not being a plugin. */ - if (ff_pkt->flags & FO_ACL && ff_pkt->type != FT_LNK) { - if (!build_acl_streams(jcr, ff_pkt)) - goto bail_out; + if (!ff_pkt->cmd_plugin) { + if (ff_pkt->flags & FO_ACL && ff_pkt->type != FT_LNK) { + if (!build_acl_streams(jcr, ff_pkt)) + goto bail_out; + } } /* - * Save Extended Attributes for all files. + * Save Extended Attributes for all files not being a plugin. */ - if (ff_pkt->flags & FO_XATTR) { - if (!build_xattr_streams(jcr, ff_pkt)) - goto bail_out; + if (!ff_pkt->cmd_plugin) { + if (ff_pkt->flags & FO_XATTR) { + if (!build_xattr_streams(jcr, ff_pkt)) + goto bail_out; + } } /* Terminate the signing digest and send it to the Storage daemon */ diff --git a/bacula/technotes b/bacula/technotes index f0a697515f..2689c92747 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -2,6 +2,9 @@ General: +27Apr09 +mvw Added fix for bug #1275 where acl or xattr data is saved for + virtual filenames generated by filed plugins. 26Apr09 ebl Remove "Reposition" message when restoring kes Fix platform scripts not to clean configured files during