on File's status
We will compare xattributes each time without respect to
previous File's status. With certain exteded attributes
this will make the 'XAs have been modified' msg more
frequent as there're generaly different XAs for directories
and regular files (i.e.: SELinux, ACL). But this aproach
is closer to others attibutes concept at all.
{
if (!cmpFilesContent(file1, stat1, file2, stat2))
status |= CONTENT;
-
-#ifdef ENABLE_XATTRS
- /* NOTE: think about this. Do you want to report
- * XA modification in case the compared files differ
- * in their types?
- */
- if (file1.xaSupported() && file2.xaSupported())
- {
- if (!cmpFilesXattrs(file1, stat1, file2, stat2))
- {
- status |= XATTRS;
- }
- }
-#endif
}
if ((stat1.st_mode ^ stat2.st_mode) & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID |
status |= GROUP;
}
+#ifdef ENABLE_XATTRS
+ if (file1.xaSupported() && file2.xaSupported())
+ {
+ if (!cmpFilesXattrs(file1, stat1, file2, stat2))
+ {
+ status |= XATTRS;
+ }
+ }
+#endif
+
return status;
}