2 This patch can be applied to version 3.0.1 and makes
3 error conditions obtaining acls during backup non-fatal.
4 This should fix bug #1305.
6 Apply it to version 3.0.1 with:
9 patch -p0 <3.0.1-acl-error.patch
10 ./configure <your-options>
17 Index: src/filed/acl.c
18 ===================================================================
19 --- src/filed/acl.c (revision 8902)
20 +++ src/filed/acl.c (working copy)
22 pm_strcpy(jcr->acl_data, "");
26 + return 0; /* non-fatal error */
30 * Handle errors gracefully.
33 + if (acl == (acl_t)NULL) {
35 #if defined(BACL_ENOTSUP)
38 - * Not supported, just pretend there is nothing to see
40 - pm_strcpy(jcr->acl_data, "");
43 + break; /* not supported */
47 - Jmsg2(jcr, M_ERROR, 0, _("acl_get_file error on file \"%s\": ERR=%s\n"),
48 - jcr->last_fname, be.bstrerror());
49 - Dmsg2(100, "acl_get_file error file=%s ERR=%s\n",
50 - jcr->last_fname, be.bstrerror());
53 + /* Some real error */
54 + Jmsg2(jcr, M_ERROR, 0, _("acl_get_file error on file \"%s\": ERR=%s\n"),
55 + jcr->last_fname, be.bstrerror());
56 + Dmsg2(100, "acl_get_file error file=%s ERR=%s\n",
57 + jcr->last_fname, be.bstrerror());
59 - pm_strcpy(jcr->acl_data, "");
61 + pm_strcpy(jcr->acl_data, "");
62 + return 0; /* non-fatal error */
66 + * Not supported, just pretend there is nothing to see
68 + pm_strcpy(jcr->acl_data, "");