return restore_plugin_acl(jcr);
default:
if (flags & BACL_FLAG_NATIVE){
+ Dmsg0(400, "make Native ACL call\n");
for (a = 0; acl_streams[a] > 0; a++){
if (acl_streams[a] == stream){
return os_restore_acl(jcr, stream, content, content_len);
break;
}
+ Dmsg2(400, "restore acl stream %i on file: %s\n", stream, jcr->last_fname);
switch (stream){
case STREAM_XACL_SOLARIS_POSIX:
if ((aclrc & (_ACL_ACLENT_ENABLED | _ACL_ACE_ENABLED)) == 0){
int flags;
acl_t *aclp;
char *acl_text;
- bRC_BACL rc = bRC_BACL_fatal;
+ bRC_BACL rc = bRC_BACL_ok;
if (!stream){
return bRC_BACL_fatal;
if ((acl_text = acl_totext(aclp, flags)) != NULL){
set_content(acl_text);
- actuallyfree(acl_text);
-
switch (acl_type(aclp)){
case ACLENT_T:
*stream = STREAM_XACL_SOLARIS_POSIX;
+ Dmsg1(500, "found acl SOLARIS_POSIX: %s\n", acl_text);
break;
case ACE_T:
*stream = STREAM_XACL_SOLARIS_NFS4;
+ Dmsg1(500, "found acl SOLARIS_NFS4: %s\n", acl_text);
break;
default:
rc = bRC_BACL_error;
break;
}
-
+ actuallyfree(acl_text);
acl_free(aclp);
}
return rc;