commit: b2b5c8524e3dd1c5b416ca79bada6a5e355c1aea Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Wed Apr 23 17:52:41 2025 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Wed Apr 23 18:33:10 2025 +0000 URL: https://gitweb.gentoo.org/proj/install-xattr.git/commit/?id=b2b5c852
Also be more verbose for listxattr() failures Bug: https://bugs.gentoo.org/934477 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> install-xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-xattr.c b/install-xattr.c index 093b505..ede501f 100644 --- a/install-xattr.c +++ b/install-xattr.c @@ -83,7 +83,7 @@ xlistxattr(const char *path, char *list, size_t size) { ssize_t ret = listxattr(path, list, size); if (ret < 0) - err(1, "listxattr() failed"); + err(1, "listxattr() failed on %s", path); return ret; } @@ -120,7 +120,7 @@ copyxattr(const char *source, const char *target) lsize = listxattr(source, NULL, 0); if (lsize < 0) { - perror("listxattr() failed"); + warn("listxattr() failed on %s", source); if (errno == ENOTSUP) return; exit(1);
