+#endif
+
+ case STREAM_UNIX_ATTRIBUTES_DEFAULT_ACL:
+#ifdef HAVE_ACL
+ acl = acl_from_text(sd->msg);
+ if (acl_valid(acl) != 0) {
+ Jmsg1(jcr, M_WARNING, 0, "Failure in the Default ACL of %s! FD is not able to restore it!\n", jcr->last_fname);
+ Dmsg1(200, "Def. ACL of file/dir: %s is not valid!\n", jcr->last_fname);
+ Dmsg1(200, "Def. ACL value=%s\n", acl);
+ } else if (acl_set_file(jcr->last_fname, ACL_TYPE_DEFAULT, acl) != 0) {
+ Jmsg1(jcr, M_WARNING, 0, "Error! Can't restore Default ACL of file/directory: %s! Maybe system does not support ACLs!\n", jcr->last_fname);
+ Dmsg1(200, "Error! Can't restore Default ACL of file/directory: %s! Maybe system does not support ACLs!\n", jcr->last_fname);
+ Dmsg1(200, "Def. ACL value=%s\n", acl);
+ } else {
+ Dmsg1(200, "Default ACL of file/directory: %s successfully restored!", jcr->last_fname);
+ }
+ acl_free(acl);
+ break;
+#else
+ non_support_acl++;
+ break;