aboutsummaryrefslogtreecommitdiffstats
path: root/guts
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-10-06 16:16:22 -0500
committerPeter Seebach <seebs@laptop-seebs-net.local>2010-10-06 16:31:26 -0500
commitb8e2778c1bb5654df478efe7d3861ed30529409b (patch)
tree763dfa74dc41fa4abe6545929d5749bf469dabe8 /guts
parente1e57ddf2cdddeea6f684127dfce56d5494dcd1e (diff)
downloadpseudo-b8e2778c1bb5654df478efe7d3861ed30529409b.tar.gz
pseudo-b8e2778c1bb5654df478efe7d3861ed30529409b.tar.bz2
pseudo-b8e2778c1bb5654df478efe7d3861ed30529409b.zip
Add the fsetxattr wrapper to return ENOTSUP
Current versions of gnu coreutils 'cp' were attempting to set permissions using fsetxattr. As a workaround, we need to return ENOTSUP so that it falls back to using fchmod, which pseudo does know how to wrap. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'guts')
-rw-r--r--guts/fsetxattr.c15
1 files changed, 15 insertions, 0 deletions
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;
+ * }
+ */