]> git.cworth.org Git - tar/blobdiff - gnu/fchown-stub.c
Imported Upstream version 1.23
[tar] / gnu / fchown-stub.c
diff --git a/gnu/fchown-stub.c b/gnu/fchown-stub.c
new file mode 100644 (file)
index 0000000..1611b1d
--- /dev/null
@@ -0,0 +1,18 @@
+/* -*- buffer-read-only: t -*- vi: set ro: */
+/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
+#include <config.h>
+
+#include <sys/types.h>
+#include <errno.h>
+
+/* A trivial substitute for `fchown'.
+
+   DJGPP 2.03 and earlier (and perhaps later) don't have `fchown',
+   so we pretend no-one has permission for this operation. */
+
+int
+fchown (int fd, uid_t uid, gid_t gid)
+{
+  errno = EPERM;
+  return -1;
+}