From fc63456723625d6f558eae74968acdb21463b0b2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 7 Mar 2014 17:01:52 -0500 Subject: fileutils: error-prefix both xattr code paths We had a g_prefix_error() for the lsetxattr() path, but not fsetxattr(). Add one for the latter, and change the former to not use the pathname because we always go through /proc/self/fd so it won't be useful to show. --- src/gsystem-file-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gsystem-file-utils.c b/src/gsystem-file-utils.c index 545fb30..63cd24d 100644 --- a/src/gsystem-file-utils.c +++ b/src/gsystem-file-utils.c @@ -1604,6 +1604,7 @@ gs_fd_set_all_xattrs (int fd, if (G_UNLIKELY (res == -1)) { _set_error_from_errno (error); + g_prefix_error (error, "fsetxattr: "); goto out; } } @@ -1644,7 +1645,7 @@ set_all_xattrs_for_path (const char *path, if (loop_err) { _set_error_from_errno (error); - g_prefix_error (error, "lsetxattr (%s, %s) failed: ", path, name); + g_prefix_error (error, "lsetxattr: "); goto out; } } -- cgit v1.2.1