+2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ * modules/chown (Files): Add lib/fchown-stub.c, since
+ gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
+
2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
* modules/argz: Omit "#include".
+2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ * fchown-stub.c: New file.
+
2004-06-24 Jim Meyering <jim@meyering.net>
* obstack.h (obstack_base): Cast to (void *), per documentation.
--- /dev/null
+#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;
+}
Files:
lib/chown.c
+lib/fchown-stub.c
m4/chown.m4
Depends-on: