summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-02-16 02:51:16 +0000
committerNathan Scott <nathans@sgi.com>2006-02-16 02:51:16 +0000
commita03b0b960591a45295392fe3f55d7c5e71264888 (patch)
treec6d7f3a6b553f008f1d789e56e692d2eefbb0344
parent31491c376e09da658f628243d1d7caf85e667edf (diff)
downloadattr-a03b0b960591a45295392fe3f55d7c5e71264888.tar.gz
Do not copy SGI DMI (data migration) attributes as well.
Merge of master-melb:xfs-cmds:25211a by kenmcd.
-rw-r--r--libattr/attr_copy_check.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libattr/attr_copy_check.c b/libattr/attr_copy_check.c
index 4a55f6c..75900f8 100644
--- a/libattr/attr_copy_check.c
+++ b/libattr/attr_copy_check.c
@@ -30,12 +30,15 @@ attr_copy_check_permissions(const char *name, struct error_context *ctx)
return 0;
/* Skip permissions attributes which are used on IRIX, and
- hence are part of the XFS ondisk format (incl. ACLs). */
+ hence are part of the XFS ondisk format (incl. ACLs).
+ Also skip SGI DMF attributes as they are inappropriate
+ targets for copying over as well. */
if (strncmp(name, "trusted.SGI_", 12) == 0 &&
(strcmp(name+12, "ACL_DEFAULT") == 0 ||
strcmp(name+12, "ACL_FILE") == 0 ||
strcmp(name+12, "CAP_FILE") == 0 ||
- strcmp(name+12, "MAC_FILE") == 0))
+ strcmp(name+12, "MAC_FILE") == 0 ||
+ strncmp(name+12, "DMI_", 4) == 0))
return 0;
/* The xfsroot namespace mirrored attributes, some of which