erofs-utils: lib: fix incorrect usage of `erofs_strerror`
authorTianyi Liu <i.pear@outlook.com>
Thu, 8 Feb 2024 13:59:09 +0000 (21:59 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 12 Feb 2024 09:27:45 +0000 (17:27 +0800)
commit67318cd54326fc303398efde8140b85f01f7223f
tree9a469c268ada59281c3d99d0d9bf202d93472442
parentd9fed538c8838d7e5a3fd4c10610c7ec069f7564
erofs-utils: lib: fix incorrect usage of `erofs_strerror`

`erofs_strerror` accepts a negative argument,
so `errno` should be inverted before passing to it.

Signed-off-by: Tianyi Liu <i.pear@outlook.com>
Link: https://lore.kernel.org/r/SY6P282MB3193657433D35C3A7799CA5F9D442@SY6P282MB3193.AUSP282.PROD.OUTLOOK.COM
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
lib/inode.c
lib/tar.c
lib/xattr.c