From 84e8f95743199deec9db0a87da517252af3cd6d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Thu, 20 Mar 2008 01:24:24 +0100 Subject: 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 --- metaentry.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'metaentry.c') 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; -- cgit v1.2.1