summaryrefslogtreecommitdiff
path: root/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2017-10-24 08:07:30 -0700
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-10-30 12:13:49 +0100
commit3b421ab6144c661893e555d70b0c75608eb6a090 (patch)
treeabf2ce600194124991250e00738a7f577a2a0ace /ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
parent030a63bc0c970332142c51f18e1597f8138bf86d (diff)
mkfs.ubifs: ignore EOPNOTSUPP when listing extended attributes
Systems that don't support extended attributes should still be able to create ubifs images. Signed-off-by: Pavel Roskin <plroskin@gmail.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/mkfs.ubifs/mkfs.ubifs.c')
-rw-r--r--ubifs-utils/mkfs.ubifs/mkfs.ubifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
index d432dfe..c916f48 100644
--- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
+++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
@@ -1128,7 +1128,7 @@ static int inode_add_xattr(struct ubifs_ino_node *host_ino,
len = llistxattr(path_name, NULL, 0);
if (len < 0) {
- if (errno == ENOENT)
+ if (errno == ENOENT || errno == EOPNOTSUPP)
return 0;
sys_err_msg("llistxattr failed on %s", path_name);