diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-06-12 16:00:43 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-06-12 16:01:27 +0200 |
commit | a87698b43f9bdc2b8e036b84dfbb2589b1129d98 (patch) | |
tree | 7a28524e3be1ce98cc3287cb9d7bb69f1eb060dd | |
parent | 2481ae7c59dc335752fdd45220d1a5a05cac1ccf (diff) | |
download | ptxdist-a87698b43f9bdc2b8e036b84dfbb2589b1129d98.tar.gz ptxdist-a87698b43f9bdc2b8e036b84dfbb2589b1129d98.tar.xz |
mtdutils: fix support for creating extended attributes with inode number
Use EINVAL instead of -EINVAL for errno.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | patches/mtd-utils-1.5.1/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/mtd-utils-1.5.1/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch b/patches/mtd-utils-1.5.1/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch index 6effdff6b..4de70724c 100644 --- a/patches/mtd-utils-1.5.1/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch +++ b/patches/mtd-utils-1.5.1/0007-mkfs.ubifs-Optionally-create-extended-attribute-with.patch @@ -37,7 +37,7 @@ Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> 1 file changed, 68 insertions(+), 9 deletions(-) diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c -index 667dce7f2986..f36ae290493a 100644 +index 667dce7f2986..4ab24a240087 100644 --- a/mkfs.ubifs/mkfs.ubifs.c +++ b/mkfs.ubifs/mkfs.ubifs.c @@ -114,6 +114,7 @@ static char *output; @@ -165,7 +165,7 @@ index 667dce7f2986..f36ae290493a 100644 + + inum_from_xattr = strtoull(attrval, NULL, 10); + if (inum != inum_from_xattr) { -+ errno = -EINVAL; ++ errno = EINVAL; + sys_err_msg("calculated inum (%llu) doesn't match inum from xattr (%llu) on %s", + (unsigned long long)inum, + (unsigned long long)inum_from_xattr, |