summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-03-07 17:01:52 -0500
committerColin Walters <walters@verbum.org>2014-03-07 17:01:53 -0500
commitfc63456723625d6f558eae74968acdb21463b0b2 (patch)
tree64bfe40ee803247153ac091d93d64aed7dda404c
parent681eef7fbb5b13fd747ad074eea216c72e673940 (diff)
downloadlibgsystem-fc63456723625d6f558eae74968acdb21463b0b2.tar.gz
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.
-rw-r--r--src/gsystem-file-utils.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}