Bug fix: The function for restoring ACLs and xattr returned error on systems

other than Linux and FreeBSD, even if nothing was to be restored.
This commit is contained in:
2011-08-08 08:25:18 +02:00
parent b90e613246
commit 6ae8386c23
3 changed files with 24 additions and 2 deletions

View File

@ -89,8 +89,12 @@ int aaip_set_attr_list(char *path, size_t num_attrs, char **names,
continue;
}
/* Extended Attribute */
if(!(flag & 4))
return(-6);
if(flag & 4)
continue;
if(!(flag & 8))
if(strncmp(names[i], "user.", 5))
continue;
return(-6);
}
if(flag & 2)
return(-6);