32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
Date: Thu, Feb 16 2006 14:16:37 +1100
|
|
From: Nathan Scott <nathans@sgi.com>
|
|
References: 151782, SGI:PV948880
|
|
Subject: skip DMF attributes on copy also
|
|
|
|
Do not copy SGI DMI (data migration) attributes as well.
|
|
|
|
===========================================================================
|
|
Index: attr/libattr/attr_copy_check.c
|
|
===========================================================================
|
|
|
|
--- a/attr/libattr/attr_copy_check.c 2006-02-16 13:47:35.000000000 +1100
|
|
+++ b/attr/libattr/attr_copy_check.c 2006-02-16 13:47:35.000000000 +1100
|
|
@@ -30,12 +30,15 @@ attr_copy_check_permissions(const char *
|
|
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
|