From f885da8087da1ba75ca2e7c164979b0675f13aac Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 22 Aug 2011 15:57:16 +0200 Subject: [PATCH] Avoided to restore xattr of namespace "isofs" if non-"user" restoring is enabled. --- libisofs/aaip-os-linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libisofs/aaip-os-linux.c b/libisofs/aaip-os-linux.c index 044b4ac..7cf6303 100644 --- a/libisofs/aaip-os-linux.c +++ b/libisofs/aaip-os-linux.c @@ -432,6 +432,7 @@ ex: -5 error with deleting attributes -6 support of xattr not enabled at compile time -7 support of ACL not enabled at compile time + ( -8 unsupported xattr namespace ) */ int aaip_set_attr_list(char *path, size_t num_attrs, char **names, size_t *value_lengths, char **values, int flag) @@ -487,6 +488,8 @@ int aaip_set_attr_list(char *path, size_t num_attrs, char **names, } /* Extended Attribute */ if(flag & 4) + continue; + if(strncmp(names[i], "isofs.", 6) == 0) continue; if(!(flag & 8)) if(strncmp(names[i], "user.", 5))