diff options
-rw-r--r-- | metaentry.c | 4 | ||||
-rw-r--r-- | metaentry.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/metaentry.c b/metaentry.c index 0277c28..efd8d3a 100644 --- a/metaentry.c +++ b/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; diff --git a/metaentry.h b/metaentry.h index c2c9e01..22f061e 100644 --- a/metaentry.h +++ b/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; |