aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt4
-rw-r--r--guts/fsetxattr.c15
-rw-r--r--wrapfuncs.in1
3 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 8c65ee9..f961e2a 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,7 @@
+2010-10-06:
+ * (mhatle) Add the fsetxattr wrapper to return ENOTSUP
+ (note: workaround gnu coreutils 'cp')
+
2010-09-16:
* (seebs) change exec*() to use file, rather than path or filename,
also add OP_EXEC where it was missing.
diff --git a/guts/fsetxattr.c b/guts/fsetxattr.c
new file mode 100644
index 0000000..95cb64c
--- /dev/null
+++ b/guts/fsetxattr.c
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2008-2010 Wind River Systems; see
+ * guts/COPYRIGHT for information.
+ *
+ * static int
+ * wrap_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags) {
+ * int rc = -1;
+ */
+
+ errno = ENOTSUP;
+ rc = -1;
+
+/* return rc;
+ * }
+ */
diff --git a/wrapfuncs.in b/wrapfuncs.in
index eab7804..586d828 100644
--- a/wrapfuncs.in
+++ b/wrapfuncs.in
@@ -118,3 +118,4 @@ int getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroups);
int getgroups(int size, gid_t *list);
ssize_t getxattr(const char *path, const char *name, void *value, size_t size);
ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size); /* flags=AT_SYMLINK_NOFOLLOW */
+int fsetxattr(int filedes, const char *name, const void *value, size_t size, int flags);