[libgsystem] fileutils: error-prefix both xattr code paths
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsystem] fileutils: error-prefix both xattr code paths
- Date: Fri, 7 Mar 2014 22:20:56 +0000 (UTC)
commit fc63456723625d6f558eae74968acdb21463b0b2
Author: Colin Walters <walters verbum org>
Date: Fri Mar 7 17:01:52 2014 -0500
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 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]