Group :: Archiving/Compression
RPM: xar
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: xar-1.5.3-ext2.patch
Download
Download
diff --git a/xar/lib/ext2.c b/xar/lib/ext2.c
index 224dab3..ed8e821 100644
--- a/xar/lib/ext2.c
+++ b/xar/lib/ext2.c
@@ -140,8 +140,10 @@ int xar_ext2attr_archive(xar_t x, xar_file_t f, const char* file, const char *bu
if(! (flags & ~EXT2_NOCOMPR_FL) )
x_addprop(f, "NoCompBlock");
#endif
+#ifdef EXT2_ECOMPR_FL
if(! (flags & ~EXT2_ECOMPR_FL) )
x_addprop(f, "CompError");
+#endif
if(! (flags & ~EXT2_BTREE_FL) )
x_addprop(f, "BTree");
if(! (flags & ~EXT2_INDEX_FL) )
@@ -229,8 +231,10 @@ int xar_ext2attr_extract(xar_t x, xar_file_t f, const char* file, char *buffer,
if( e2prop_get(f, "NoCompBlock", (char **)&tmp) == 0 )
flags |= EXT2_NOCOMPR_FL ;
#endif
+#ifdef EXT2_ECOMPR_FL
if( e2prop_get(f, "CompError", (char **)&tmp) == 0 )
flags |= EXT2_ECOMPR_FL ;
+#endif
if( e2prop_get(f, "BTree", (char **)&tmp) == 0 )
flags |= EXT2_BTREE_FL ;
if( e2prop_get(f, "HashIndexed", (char **)&tmp) == 0 )