From 7f66c308ba02b0597a7e5cfc95b151c5448bc236 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sun, 5 Jul 2009 07:58:51 +0000 Subject: [PATCH] Small change to allow the compiler to optimize it easier due to the constant. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8958 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/filed/backup.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index 0fb9494a00..f1818260c8 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -598,19 +598,21 @@ int save_file(JCR *jcr, FF_PKT *ff_pkt, bool top_level) /* * Save ACLs when requested and available for anything not being a symlink and not being a plugin. */ - if (ff_pkt->flags & FO_ACL && have_acl && - ff_pkt->type != FT_LNK && !ff_pkt->cmd_plugin) { - if (!build_acl_streams(jcr, ff_pkt)) - goto bail_out; + if (have_acl) { + if (ff_pkt->flags & FO_ACL && ff_pkt->type != FT_LNK && !ff_pkt->cmd_plugin) { + if (!build_acl_streams(jcr, ff_pkt)) + goto bail_out; + } } /* * Save Extended Attributes when requested and available for all files not being a plugin. */ - if (ff_pkt->flags & FO_XATTR && have_xattr && - !ff_pkt->cmd_plugin) { - if (!build_xattr_streams(jcr, ff_pkt)) - goto bail_out; + if (have_xattr) { + if (ff_pkt->flags & FO_XATTR && !ff_pkt->cmd_plugin) { + if (!build_xattr_streams(jcr, ff_pkt)) + goto bail_out; + } } /* Terminate the signing digest and send it to the Storage daemon */ -- 2.39.5