Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Detect whether the underlying FS supports xattrs

No support for xattrs is treated the same as a file having no xattrs on a
file system which does support xattrs. This should fix Debian BR #470184
  • Loading branch information...
commit 84e8f95743199deec9db0a87da517252af3cd6d8 1 parent 8c886bd
@Alphix Alphix authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 metaentry.c
  2. +1 −1  metaentry.h
View
4 metaentry.c
@@ -220,6 +220,10 @@ mentry_create(const char *path)
lsize = listxattr(path, NULL, 0);
if (lsize < 0) {
+ /* Perhaps the FS doesn't support xattrs? */
+ if (errno == ENOTSUP)
+ return mentry;
+
msg(MSG_ERROR, "listxattr failed for %s: %s\n",
path, strerror(errno));
return NULL;
View
2  metaentry.h
@@ -18,7 +18,7 @@
*
*/
-/* Data structure to hold all metadata for a file */
+/* Data structure to hold all metadata for a file/dir */
struct metaentry {
struct metaentry *next;
char *path;
Please sign in to comment.
Something went wrong with that request. Please try again.